baliukas wrote:
try to find manager in JNDI, but
you can use stateful bean as Synchronization interface implementation,
too.
.
thanks,
I am using the jndi for looking up. Looks like the Websphere does not support looking up of TransactionManager object(since this is container managed).
AND we are not using EJBs in our application . SO is there any other alternate solutions for making container to invoke the afterCompletion method.
I have one more doubt, the net.sf.transaction.WebsphereTransactionManagerLookup has one method getTransactionManager method. The hibernate apis uses this internally.
Since I was not able to lookup TranscactionManager oject at all, how hibernate api is able to get the Transaction Manager. Infact in the latest of websphere 5.1 , even this code is failing.