dev@glassfish.java.net

Re: Glassfish V3 dataSource

From: Ming Zhang <Ming.Zhang_at_Sun.COM>
Date: Mon, 22 Jun 2009 10:09:56 -0700

Thanks Mitesh and Shalini for the pointers. I was able to use Spring jee
schema to lookup the jdbc resource in GF V3 through jndi and the App is
now working on GlassFish V3.

Ming

Shalini Muthukrishnan wrote:
> 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
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>