dev@glassfish.java.net

Re: Glassfish V3 dataSource

From: Shalini Muthukrishnan <Shalini.Muthukrishnan_at_Sun.COM>
Date: Fri, 19 Jun 2009 11:17:53 +0530

Hi Ming,

You could create a jdbc connection pool and jdbc resource in GlassFish
V3, and use a bean that looks up this datasource object. This bean could
be used in the class name below. I have not tried to do this though.

HTH,
Shalini.

Ming Zhang wrote:
> Hi,
>
> One of my spring apps defines dataSource bean as:
> <bean id="dataSource"
> class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"
> p:driverClassName="${jdbc.driverClassName}"
> p:url="${jdbc.url}" p:username="${jdbc.username}"
> p:password="${jdbc.password}"/>
>
> I packaged that app as war file and deployed on V3 and it worked. Is
> there any class similar to "org.apache.commons.dbcp.BasicDataSource"
> in GF V3 that I can use in the definition of dataSource bean? This
> way, I can use GF features and not carrying jakarta-commons jars.
>
> Thanks,
> Ming
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>