-->
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: Issues using Glassfish 3.1.2 Transaction Manager
PostPosted: Wed Jan 30, 2013 8:51 am 
Newbie

Joined: Wed Jan 30, 2013 6:24 am
Posts: 1
I have an application in developing stage using Hibernate 4.1.9 and it's working just fine including Hibernate Search. The first test environment is Apache -> Glassfish -> MySQL and later will be multiple Glassfish -> Infinispan -> MySQL. As I will need to use the application servers Transaction Manager to reach second test environment I started by defining this in the configs. The result is repeating messages to Glassfish' server.log about missing Transaction Manger:

[#|2013-01-30T13:27:00.053+0100|WARN|glassfish3.1.2|org.hibernate.engine.transaction.internal.jta.JtaTransaction|_ThreadID=504197;_ThreadName=Thread-2;|HHH000426: You should set hibernate.transaction.manager_lookup_class if cache is enabled|#]

It appears to be printed from the afterAfterCompletion() method in JtaTransaction if flag isDriver is true and isInitiator is false. Currently, no 2LC is in use.

Changes to pojos are persisted to the database, but Hibernate Search doesn't see the changes. I guess the error is in the usage of Glassfish' TC, what I see in Search is just a result of this.

If I remove the hibernate.transaction.* settings but continue to use the XA-datasource, everything is fine.

Relevant configurations:
hibernate.dialect=org.hibernate.dialect.MySQLDialect
hibernate.connection.datasource=jdbc/XA_ZuPool
hibernate.transaction.factory_class=org.hibernate.transaction.JTATransactionFactory
hibernate.transaction.jta.platform=org.hibernate.service.jta.platform.internal.SunOneJtaPlatform
hibernate.current_session_context_class=jta

Any hint or ideas about what is missing in this setup is appreciated.

// Mattias


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.