-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Websphere 5.0 Distributed XA transaction with MDB MQ Q
PostPosted: Mon Feb 14, 2005 7:58 pm 
Newbie

Joined: Tue Jan 11, 2005 2:26 pm
Posts: 15
Hi,

I don't know if anyone has dealt with this, but I had a problem that I was working on and finally resolved it.

My scenario was that I had an MDB which was reading from an MQ Q and then attempting to update an Oracle 8i database.

I received various exception messages.

the most prominent was:

net.sf.hibernate.TransactionException: could not register synchronization with JTA TransactionManager

I tried various combinations of the hibernate.properties settings, but here's what finally worked:

hibernate.transaction.factory_class = net.sf.hibernate.transaction.JTATransactionFactory

# Hibernate Transaction Manager Lookup Class
# I am using WAS 5.0
hibernate.transaction.manager_lookup_class = net.sf.hibernate.transaction.WebSphereTransactionManagerLookup

What was also important was to set the transactional properties of the MDB bean method to "bean" and to set local transactions to "BeanMethod", "Application" and "Commit"

Also note that in my code, I did not use any session.beginTransaction() or txn.commit() method calls.

Regards,
-Ben


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.