Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2005

Tip: Looking for answers? Try searching our database.

Setting up a URL resource in Tomcat JNDI

Thread view: 
success_ny@yahoo.com - 19 Oct 2005 21:46 GMT
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>
success_ny@yahoo.com - 20 Oct 2005 14:15 GMT
Anybody?
Andrew Thompson - 20 Oct 2005 14:47 GMT
> Anybody?

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

..Me, for one.
success_ny@yahoo.com - 20 Oct 2005 15:14 GMT
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.
Chris Uppal - 20 Oct 2005 15:48 GMT
> The point of this forum is to provide help to
> other developers in need

Utterly wrong.

   -- chris
Roedy Green - 22 Oct 2005 02:14 GMT
>> The point of this forum is to provide help to
>> other developers in need
>
>Utterly wrong.

what do you think it is?

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.

Thomas Weidenfeller - 20 Oct 2005 15:50 GMT
> 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
Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/

Andrew Thompson - 20 Oct 2005 16:16 GMT
>> 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.   :-/
Thomas Weidenfeller - 20 Oct 2005 15:29 GMT
> 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
Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/

success_ny@yahoo.com - 20 Oct 2005 14:16 GMT
Anybody?
Roedy Green - 20 Oct 2005 15:20 GMT
>Anybody?

see http://mindprod.com/jgloss/newsgroups.html#ENTITLEMENT
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.