tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Mikusa <dmik...@vmware.com>
Subject Re: Tomcat JDBC connection pool + JMX
Date Wed, 27 Mar 2013 13:51:15 GMT
On Mar 27, 2013, at 9:23 AM, Jose MarĂ­a Zaragoza wrote:

>> Here's what I see when I look at a Tomcat server with a tomcat-jdbc connection pool
defined.
>> 
>>  tomcat.jdbc:name="<jndi-path>",type=ConnectionPool,class=org.apache.tomcat.jdbc.pool.DataSource
>> 
>> I think this might also work (although it appears read-only).
>> 
>>  Catalina:type=DataSource,class=javax.sql.DataSource,name="<jndi-path>"
>> 
> 
> 
> Thanks
> But I don't define any JDNI name (  I don't need it )
> This is my code ( Spring )

This is exactly why you should open jconsole or jvisualvm and take a look for yourself.

Dan

> 
> <bean id="dataSource" class="org.apache.tomcat.jdbc.pool.DataSource"
> destroy-method="close">
>   		 <property name="driverClassName" value="${database.driver}" />
>         <property name="url" value="${database.url}" />
>         <property name="username" value="${database.username}" />
>         <property name="password" value="${database.password}" />
> 		 <property name="maxActive" value="${database.maxactive}" />
> 		 <property name="removeAbandoned" value="${database.removeabandoned}" />
> 		 <property name="validationQuery" value="${database.validationquery}" />
> 
> </bean>
> 
> Regards
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message