users@glassfish.java.net

Re: Container Managed Transaction and Hibernate Search

From: <glassfish_at_javadesktop.org>
Date: Mon, 10 Sep 2007 06:00:45 PDT

Ok but what do you mean by "manually start the JTA transaction"?

I tried the following code but I have the same error :

UserTransaction tx = null;
Session session = null;
        
session = HibernateSessionFactory.getSessionFactory().openSession();
tx = (UserTransaction)new InitialContext().lookup("java:comp/UserTransaction");
tx.begin();
session.save(data);
tx.commit();
[Message sent by forum member 'will_mad' (will_mad)]

http://forums.java.net/jive/thread.jspa?messageID=234658