JNDI Issue with Tomcat

2008-05-14 Thread Hanmay Udgiri
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

Re: JNDI Issue with Tomcat

2008-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hanmay, Hanmay Udgiri wrote: | 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.nam

Re: JNDI Issue with Tomcat

2008-05-15 Thread Hanmay Udgiri
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 exc

Re: JNDI Issue with Tomcat

2008-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hanmaya, Hanmay Udgiri wrote: | So I am getting below exception If I set my JNDI class to initialize at | start up. How do you set your class to initialize at startup? Be specific. Care to post the code you use to fetch the JNDI DataSource? - -chr