I'm using tomcat 4.  I ended up defining the db in the server.xml using an
example I found(see my Thanks post).

Chris

-----Original Message-----
From: Ivan Aguirre [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 05, 2004 8:59 AM
To: [EMAIL PROTECTED]
Subject: Re: DB Connections with Axis


I use db pooling with Axis and It's working well.
I'll teel you how I use it, so I hope help you ;)

1. I don't define the Connections inside Context Elements on
server.xml. Instead I use a <appname>.xml located at
TOMCAT_HOME/conf/localhost, its's a recommendation:

"Please note that for tomcat 5.x, unlike tomcat 4.x, it is NOT 
recommended to place <Context> elements directly in the server.xml file.
Instead, put them in the META-INF/context.xml directory of your WAR file or
the
conf directory as described above. "

source: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html

2. Axis is a Tomcat WebApp, so you need to change Axis WebApp config
files: web.xml and axis.xml (as described above...) in order to make
DataSources avaiable only for this WebApp.

3. Larry is correct ;) If you define a DataSource available to all
WebApps (I believe in this case it must be defined at server.xml) it
must work....

Take a look at:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-how
to.html

I don't know if this solves your problem..... if doens't please send
more info ;)

bye !!

On Wed, 29 Sep 2004 11:18:32 -0400, Hubble, Christopher
<[EMAIL PROTECTED]> wrote:
>  
> The original servlet was running in the tomcat webapps dir.  The new web
> service is running in axis's webapps dir, which is in turn located in
> tomcats webapps dir.  I assume I need to change the path parameter in the
> server.xml file, but what do I change it to?  I tried changing it to axis
> and that made axis stop working.
> 
>  
>   
> Chris 
>  
> -----Original Message-----
> From: Larry Meadors [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 29, 2004 10:22 AM
> To: [EMAIL PROTECTED]
> Subject: Re: DB Connections with Axis
> 
>  
> Why? If it is using JNDI, it should still be OK, no? 
>   
> Larry
> 
> >>> [EMAIL PROTECTED] 9/29/2004 8:09:42 AM >>>
>  
> I'm migrating a servlet over to Axis.  The current servlet connects using
db
> pooling as configured in the server.xml file.  How do I change this to
> deploy it to Axis?

Reply via email to