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: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]