I'm sorry, I should have given the question more detailed.
Generally, we config our JNDI data source in configuration file and put it into 
"conf/catalina/localhost", when tomcat is starting up alone, the configuration 
is loaded by tomcat and then we can find our data source like that:
Context context = new InitialContext()
context.lookup("my_data_sourc_name");

But now I start up tomcat in Eclipse and the configuration isn't loaded 
automatically and also the data source couldn't be found.
So, the question is how could I make the configuration file work.

In one word, how to make tomcat(started by Eclipse) include a data source that 
I can find out like the above snippet.


----- Original Message ----- 
From: "David Smith" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Monday, March 20, 2006 8:15 AM
Subject: Re: JNDI in embedded tomcat


> Details please. This question is way to general to answer without even
> so much as a version number.
> 
> JNDI config information for tomcat can be found at
> http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html for
> tomcat 5.5.x
> 
> --David
> 
> Minilin-inbox wrote:
> 
>>Hi, All,
>>
>>I want to start tomcat by program, but I also need a JNDI data source.
>>Could anyone tell me how to config a Tomcat JNDI data source by program, 
>>or any method let the data source configuration file work?
>>
>>Minilin
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Reply via email to