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: Hibernate + JTA + JOTM
PostPosted: Wed Jul 28, 2010 12:05 pm 
Newbie

Joined: Wed Jul 28, 2010 11:53 am
Posts: 1
hi,
I am currently trying to get Hibernate (3.3.2 GA) to work with JTA and JOTM.

My hibernate.cfg looks like this:

Code:
    <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
    <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
    <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/----</property>
    <property name="hibernate.connection.username">----</property>
    <property name="hibernate.connection.password">----</property>
    <property name="hibernate.current_session_context_class">jta</property>
    <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JOTMTransactionManagerLookup</property>
    <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>


To get a Session I use this code:

Code:
sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();
sessionFactory.getCurrentSession();


but i get this exception:
Code:
java.lang.RuntimeException: No TransactionManagerLookup specified


Strangely there is no error message in the hibernate log file:
Code:
17:43:14:198 - DEBUG - SessionFactoryImpl - obtaining JTA TransactionManager
17:43:14:234 - DEBUG - SessionFactoryImpl - Checking 0 named HQL queries
17:43:14:235 - DEBUG - SessionFactoryImpl - Checking 0 named SQL queries


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.