You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ivan Aguirre <iv...@gmail.com> on 2004/10/05 14:58:46 UTC
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-howto.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
<ch...@saic.com> 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:Larry.Meadors@plumcreek.com]
> Sent: Wednesday, September 29, 2004 10:22 AM
> To: axis-user@ws.apache.org
> Subject: Re: DB Connections with Axis
>
>
> Why? If it is using JNDI, it should still be OK, no?
>
> Larry
>
> >>> CHRISTOPHER.L.HUBBLE@saic.com 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?