Details
Description
A non-jta-data-source is required for DB2 sequences; however, org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl does not support a JNDI lookup for this data source from the openjpa.ConnectionFactory2Name property as documented (refer to section 5.12 and 4.2.1 of the OpenJPA manual).
It seems like the same implementation for the jta-data-source should be implemented for the non-jta-data-source. i.e.
// ADD createConnectionFactory2()
private DecoratingDataSource createConnectionFactory2()
// MODIFY this method
public Object getConnectionFactory2() {
// override to configure data source
if (dataSource2 == null)
return dataSource2;
}
Attachments
Attachments
Issue Links
- is related to
-
OPENJPA-153 WebSphere and non-jta-data-source and default ManagedRuntime
- Closed
- relates to
-
OPENJPA-149 non-jta-data-source must be specified in WebSphere environments
- Closed