Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Setting up a URL resource in Tomcat JNDI

Reply
Thread Tools

Setting up a URL resource in Tomcat JNDI

 
 
success_ny@yahoo.com
Guest
Posts: n/a
 
      10-19-2005
I need to set up a value of type java.net.URL in server.xml so that
it's accessible via JNDI from servlets running under Tomcat.

I.e., I need to set up a value that I can get in the code like this:

URL url = (URL) initialContext.lookup("url/configURL");

How do I do that? I tried the setting below, but it does not seem to
work for the type java.net.URL. Please help. Thanks!

<Resource auth="Container" name="url/configURL" scope="Shareable"
type="java.net.URL"/>

<ResourceParams name="url/configURL">
<parameter>
<name>spec</name>
<value>file:///C:/conf_files</value>
</parameter>
</ResourceParams>

 
Reply With Quote
 
 
 
 
success_ny@yahoo.com
Guest
Posts: n/a
 
      10-20-2005
Anybody?

 
Reply With Quote
 
 
 
 
success_ny@yahoo.com
Guest
Posts: n/a
 
      10-20-2005
Anybody?

 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      10-20-2005
wrote:

> Anybody?


What? Think you are extremely impatient and slightly
selfish for 'chasing up' a post less than a day old?

...Me, for one.
 
Reply With Quote
 
success_ny@yahoo.com
Guest
Posts: n/a
 
      10-20-2005
Dear Andrew,

If you have nothing to do say on the subject, you can as well be quiet
and not say anything. The point of this forum is to provide help to
other developers in need, not give your half-wit comments.

 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      10-20-2005
On 20 Oct 2005 06:16:18 -0700, wrote or quoted :

>Anybody?


see http://mindprod.com/jgloss/newsgroups.html#ENTITLEMENT
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
 
Reply With Quote
 
Thomas Weidenfeller
Guest
Posts: n/a
 
      10-20-2005
Andrew Thompson wrote:
> What? Think you are extremely impatient and slightly
> selfish for 'chasing up' a post less than a day old?


You missed his second "Anybody?" posting just a minute after that first
one. IIRC in August there was also some guy from JPM here, making an
equally good impression.

/Thomas
--
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/...g/java/gui/faq
http://www.uni-giessen.de/faq/archiv....java.gui.faq/
 
Reply With Quote
 
Chris Uppal
Guest
Posts: n/a
 
      10-20-2005
wrote:

> The point of this forum is to provide help to
> other developers in need


Utterly wrong.

-- chris


 
Reply With Quote
 
Thomas Weidenfeller
Guest
Posts: n/a
 
      10-20-2005
wrote:
> If you have nothing to do say on the subject, you can as well be quiet
> and not say anything. The point of this forum is to provide help to
> other developers in need, not give your half-wit comments.


Oh, we really like it when someone thinks this Usenet discussion group
is a "forum" and a help desk where he is entitled of help.

/Thomas
--
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/...g/java/gui/faq
http://www.uni-giessen.de/faq/archiv....java.gui.faq/
 
Reply With Quote
 
Andrew Thompson
Guest
Posts: n/a
 
      10-20-2005
Thomas Weidenfeller wrote:
> wrote:
>
>> If you have nothing to do say on the subject, you can as well be quiet
>> and not say anything. The point of this forum is to provide help to
>> other developers in need, not give your half-wit comments.

>
> Oh, we really like it when someone thinks this Usenet discussion group
> is a "forum" ...


Please feel free to slap me silly every time I use that word.

I do use it commonly, in it's wider sense..
"a public meeting or assembly for open discussion"

I like the parts 'public' and 'discussion', but it
seems it is open to being misunderstood for the term
'web forum'.

One of my (top 650) favorite words, made effectively
useless to communicate what I want to express. :-/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best place to look up JNDI resource, init db connection, in servlet. jason.cipriani@gmail.com Java 2 07-06-2008 09:46 PM
Custom JNDI Resource for Tomcat WebDAVServlet raymi Java 0 08-11-2006 02:10 PM
why use ENC JNDI (java:comp/env) instead of JNDI name ? Mick Java 2 02-23-2005 12:50 PM
Need Help with Hibernate - "Not binding factory to JNDI, no JNDI name configured" Mike S Java 0 09-16-2004 09:58 PM
JNDI: Tomcat + Oracle cccc Java 1 05-13-2004 08:30 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57