Atomikos Forum

OSGi Bundles and JTA (Atomokos)

I have 2 OSGi bundles: 
1. JTA (Atomikos) Bundle that sets up the Atomikos transaction manager with Spring as in http://www.atomikos.com/Documentation/SpringIntegration.
2. A JMS Proxy Bundle that uses MessageDrivenBeanContainer to get messages from a JMS Queue and persist to a Table using Hibernate as in http://www.atomikos.com/Documentation/HibernateIntegration without needing a JNDI server.



I am able to receive a JMS message with a transaction  started by the MessageDrivenBeanContainer. I try to persist the message using a Pojo with HibernateTemplate but I get the following error:

  ERROR Could not find UserTransaction in JNDI javax.naming.NameNotFoundException: Name java:comp is not bound in this Context



What am I doing wrong?  Since transaction is already started I don't think I need any transaction demarcation on my pojo.  Any help on this is appreciated.

thanks
sonam Send private email
Thursday, July 08, 2010
 
 
What version of Hibernate are you using?
Guy Pardon Send private email
Thursday, July 08, 2010
 
 
I am using Hibernate version 3.2.6.ga.  Can this have an impact?

thanks
sonam Send private email
Thursday, July 08, 2010
 
 
Thanks,

And what version of Atomikos?
Guy Pardon Send private email
Thursday, July 08, 2010
 
 
I am using Atomikos 3.6.5 version.

thanks
sonam Send private email
Thursday, July 08, 2010
 
 
I discovered the solution to my jndi problem.  I needed to upgrade the Hibernate library.  Somehow the older Hibernate library seems to look for a jndi approach to finding the UserTransaction. 

thanks
sonam Send private email
Monday, July 12, 2010
 
 
Thanks for the feedback,

So what version of Hibernate do you use now?

Thanks!
Guy Pardon Send private email
Monday, July 12, 2010
 
 
I am using 3.3.2.GA.  I also updated the Spring-Orm library from Springframework.  I think it is a combination of libraries that needed to be updated.
sonam Send private email
Tuesday, July 13, 2010
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics