Access Tomcat-declared Resource from outside Tomcat

2003-10-21 Thread Ian Hunter
I've got a database resource declared as part of Tomcat's resource pool (JNDI?) -- I need a standalone Java app to access it. How do I declare such a thing in a standalone app? I realize this is slightly off topic but I figured someone else out there might try to do the same thing. Literally,

RE: Access Tomcat-declared Resource from outside Tomcat

2003-10-21 Thread Shapira, Yoav
: Access Tomcat-declared Resource from outside Tomcat I've got a database resource declared as part of Tomcat's resource pool (JNDI?) -- I need a standalone Java app to access it. How do I declare such a thing in a standalone app? I realize this is slightly off topic but I figured someone else out

Re: Access Tomcat-declared Resource from outside Tomcat

2003-10-21 Thread Ian Hunter
: Access Tomcat-declared Resource from outside Tomcat Howdy, Currently tomcat doesn't have an external JNDI provider, so you can't really do what you're looking for. Yoav Shapira Millennium ChemInformatics -Original Message- From: Ian Hunter [mailto:[EMAIL PROTECTED] Sent: Tuesday, October

RE: Access Tomcat-declared Resource from outside Tomcat

2003-10-21 Thread Shapira, Yoav
Howdy, I don't follow you -- shouldn't I be able to create an instance of a naming context and populate it from within my App, then refer back to it? For No. You need a JNDI provider to do this. There is a lot going on in the background when you create naming context and bind into them.