Configuring primrose in spring  
Raju Wed Nov 04 12:01:46 GMT 2009
 
Hi,

is there a bean type definition for spring available for connection pooling , instead of doing the tricks in server.xml or web.xml?

I am using the basic datasource in sping configured like this...














Thanks in advance,
 
Raju Wed Nov 04 12:03:40 GMT 2009
 
Sry the bean definition missed... here it is

< bean id="exampleDS" class="org.apache.tomcat.dbcp.dbcp.BasicDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://localhost:3306/exampleDB" />
<property name="username" value="mysql" />
<property name="password" value="mysql" />
<property name="maxActive" value="100" />
<property name="maxIdle" value="30" />
<property name="maxWait" value="10000" />
<property name="removeAbandoned" value="true" />
<property name="removeAbandonedTimeout" value="60" />
<property name="logAbandoned" value="true" />
</bean>
sedj Tue Nov 10 19:47:05 GMT 2009
 
Hi Raju,

Are you trying to inject a datasource into a webapp, or the IoC container (or both) ?
Are you using hibernate also ?

Cheers,
sedj