Oracle Community Directory
Oracle Community FAQ
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Java EE (Java Enterprise Edition)
Java Message Service (JMS)
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Apr 4, 2013 5:35 PM by
Releasing XASession XAResource - Manual enlisting
Apr 3, 2013 12:16 PM
In our MDB we have a Xatransaction between DB and Tibco foreign server Queue. we have enlisted the foreign server XaResouce using below.
The MDB is on Weblogic server 10.3.6, JDK 1.6.
XASession xaSession = xaConn.createXASession();
TransactionHelper txHelper = TransactionHelper.popTransactionHelper();
Transaction tx = txHelper.getTransaction();
Transactions are working fine.
but the problem is releasing resources. after few thousand msgs i see heap containing same number of Tibjmsxasession,Tibjmsxaresource,Tibjmslongkey objects. this leads to outofmemory issue.
we cannot use session.close() in between the transaction.
the transaction are container managed. only enlisting is done manually.
Edited by: 997865 on Apr 3, 2013 10:16 AM
This content has been marked as final.
Show 1 reply
Re: Releasing XASession XAResource - Manual enlisting
Apr 4, 2013 5:35 PM
in response to
SessionSynchronization implements Synchronization and has 2 methods afterCompletion and beforeCompletion.
session.close can be called inside afterCompletion.