Atomikos Forum |
|
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 |