Re: Context.INITIAL_CONTEXT_FACTORY

2007-02-02 Thread Pid
Fran Varin wrote: Christopher & Pid-2: I actually have something working although I'm not entirely sure I have a complete understanding; there are still some gaps. I found this article --> http://wiki.apache.org/tomcat/UsingDataSourcesand it helped a great deal. Here is what I have done:

Re: Context.INITIAL_CONTEXT_FACTORY

2007-02-02 Thread Fran Varin
Christopher & Pid-2: I actually have something working although I'm not entirely sure I have a complete understanding; there are still some gaps. I found this article --> http://wiki.apache.org/tomcat/UsingDataSourcesand it helped a great deal. Here is what I have done: Step 1 - Using To

Re: Context.INITIAL_CONTEXT_FACTORY

2007-02-02 Thread Pid
Fran Varin wrote: Well, let me see if I can paint an accurate picture...The application as it is currently running in WAS uses a properties file to externalize everything we need to connect to a datasource. The code itself will add the initial context class name to the properties file that is han

Re: Context.INITIAL_CONTEXT_FACTORY

2007-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fran, Fran Varin wrote: > The code itself will add the initial context class name to the > properties file that is handed to javax.naming.initialcontext at the > time the context object is constructed. Can you post your code? I have never tried to sp

Re: Context.INITIAL_CONTEXT_FACTORY

2007-02-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fran, Fran Varin wrote: > On the one hand > it "appears" that you can modify the server.xml file (which we have done) > and the the datasource and context will be defined globally. We tried > that...same error. Here is exactly what I have in my setu

RE: Context.INITIAL_CONTEXT_FACTORY

2007-02-01 Thread Fran Varin
Well, let me see if I can paint an accurate picture...The application as it is currently running in WAS uses a properties file to externalize everything we need to connect to a datasource. The code itself will add the initial context class name to the properties file that is handed to javax.naming

Re: Context.INITIAL_CONTEXT_FACTORY

2007-02-01 Thread Fran Varin
I'v looked at that link a thousand times. Unfortunately, we are brand new to Tomcat and the documentation strikes us as a little obtuse. On the one hand it "appears" that you can modify the server.xml file (which we have done) and the the datasource and context will be defined globally. We tried t

RE: Context.INITIAL_CONTEXT_FACTORY

2007-02-01 Thread Nelson, Tracy M.
| From: Fran Varin [mailto:[EMAIL PROTECTED] | Sent: Thursday, 01 February, 2007 08:05 | | It boils down to my attempt at using | "org.apache.naming.java.javaURLContextFactory". However, when I do I | receive "javax.naming.NameNotFoundException: Name jdbc is not bound | in this Context:". Are yo

Re: Context.INITIAL_CONTEXT_FACTORY

2007-02-01 Thread Pid
Fran Varin wrote: Hi, We are in the process of trying to use Tomcat 5.5.20 to access an existing DB2 Database. Up until this point the application has been running under WebSphere (We are trying to utilize Tomcat for testing purposes). In WebSphere we can supply an IBM JNDI Factory Class named