Glassfish - support for jdbc-connection-pool with datasource-classname as an alternative to driver-classname

Description

see: http://cargo.996258.n3.nabble.com/Glassfish-datasource-configuration-td18130.html

This is my expectation:

1 2 3 4 5 6 7 <jdbc-connection-pool datasource-classname="com.p6spy.engine.spy.P6DataSource" res-type="javax.sql.DataSource" name="cargo-datasource-realds"> <property name="user" value="sa"></property> <property name="url" value="jdbc:h2:mem:p6spy"></property> <property name="password" value="sa"></property> </jdbc-connection-pool> <jdbc-resource pool-name="cargo-datasource-realds" jndi-name="jdbc/realds"></jdbc-resource>

Please note the jdbc-connection-pool attributes:

  • datasource-classname and

  • res-type with "javax.sql.DataSource"

Seems to be not possible with current cargo implementation.

Please keep in mind, that res-type could differ (might be XADatasource, so should be probably configurable as well)

Not sure how the maven config should look like. I'm quite open to your suggestions.

thanks.

Status

Assignee

Archimedes Trajano

Reporter

S. Ali Tokmen

Components

Fix versions

Priority

Major