Hi.

That's a little bit OT. The connection pool should be part of the tomcat
configuration (or an other servlet engine). The server.xml may be a good
part, better you place a xml into the
$CATALINA_HOME/conf/Catalina/localhost folder such as:

<Context path="/example"
         docBase="/workspaces/struts-it/examples/src/webapp"
         reloadable="true"
         crossContext="true">

   <Logger className="org.apache.catalina.logger.FileLogger"
           prefix="examples_log." suffix=".txt"
           timestamp="true"/>

   <Resource name="jdbc/default"
             auth="Container"
             type="javax.sql.DataSource"
             maxActive="100"
             maxIdle="30"
             maxWait="10000"
             username="application"
             password=""
             driverClassName="com.mysql.jdbc.Driver"
             url="jdbc:mysql://localhost:3306/test?autoReconnect=true"/>

</Context>

Then you are able to configure a connectionpool via jndi ressource. For
more details contact the tomcat documentation.

Manfred

Struts goes mobile. See http://www.strutsme.org




amit fulambarkar wrote:
> How can i implement connection pooling in struts. What will be the
> server.xml? and what the things i would have to do.Give the code.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to