the best thing to do is to look into DataSourceRealm.java as part of the tomcat source code. the method open(), shows how server code would look up both a local or a global data source

Filip
Hanmay Udgiri wrote:
Hi
I have implemented datasource using JNDI look up.
The code work fine If I call the code during any User action.
But If try to call the same code during the tomcat server start up I get an
exception

javax.naming.NameNotFoundException: Name comp is not bound in this Context

I am using Tomcat 5.5 and Oracle 9

I am using JNDI look for connection pooling.
We have a ITSMain class which uses MBeanServer to load the classes.
This class has a ServiceManager class which load all start up services and
initializes it.
During this we have Connection pooling class which uses JNDI look up.
So I am getting below exception If I set my JNDI class to initialize at
start up.
But If I don't set my class to initialize at server start up,Then I don't
get any exception.


------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1433 - Release Date: 5/14/2008 4:44 PM


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to