Closed arinban closed 6 years ago
@arinban Commented
@arinban Commented @arinban Commented
@arinban Commented @arinban Commented @glassfishrobot Commented Reported by nigeldeakin
@arinban Commented @arinban Commented @glassfishrobot Commented This issue was imported from java.net JIRA GENERICJMSRA-49
Closing this as this issue is migrated to https://github.com/ari-ban/test1/issues/49
This issue relates to the use of GenericJMSRA to connect to WebLogic JMS, and was suggested by Sivakumar.
Because this mode of operation does not support XA transactions, the resource adapter property SupportsXA must be set to false.
In addition, the user has to explicitly configure any outbound connection factory as LocalTransaction or NoTransaction (see the user documentation at http://genericjmsra.java.net/docs/weblogicjms/wljms.html)
This setting is needed because GlassFish defaults the transaction-support level to XATransaction.
GlassFish chooses this default because the resource adapter's ra.xml descriptor explicitly states that the level of transaction support is XATransaction.
However with Connectors 1.6, there is a new feature "Runtime Transaction Support Level Specification" (Section 7.13 of the Connectors 1.6 spec) that allows a resource adapter to determine at runtime (based on how it is configured) the transaction support level it could support.
Would it be possible to modify GenericJMSRA to use this feature so that the transaction support level could be determined at runtime? If this were the case then the GlassFish (e.g. the admin console) would automatically set connection factories to use by default an appropriate transaction support level configored for the resource adapter, and thereby avoid the need for users to configure this explicitly on every connection factory.
The Connector 1.6 spec states that to implement this, it would be necessary for the ManagedConnectionFactory to implement a new interface javax.resource.spi.TransactionSupport. It wouldn't be necessary to implement any other parts of the 1.6 spec.
Affected Versions
[2.1a]