tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose MarĂ­a Zaragoza <demablo...@gmail.com>
Subject Re: Tomcat JDBC connection pool + JMX
Date Wed, 27 Mar 2013 13:23:11 GMT
> 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 )

 <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


Mime
View raw message