-->
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.  [ 3 posts ] 
Author Message
 Post subject: One transaction with two diferents session factory
PostPosted: Wed May 03, 2006 4:06 pm 
Newbie

Joined: Thu Jul 21, 2005 10:17 am
Posts: 17
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.1

Name and version of the database you are using: MySQl 5.0.20a with Connector/J 3.1.12 on Linux Box

I'm actually using hibernate 3.1 and EJB (with Session Beans) in some JBoss container application and currently in trouble:

There are two parts of the same application running in different enviroments (deployment), each one with your respective Session Factory
An user's Session Factory (usuarioData database) and a log's Session Factory (logData database).

I want to delete a user and your logs, but if there any kind of problem, i want BOTH intact.

I mean: ONE transaction with TWO Session Factorys... is that possible?

Regards,


Top
 Profile  
 
 Post subject: more information
PostPosted: Wed May 03, 2006 4:25 pm 
Newbie

Joined: Thu Jul 21, 2005 10:17 am
Posts: 17
I'm using EJB (Session Beans) with JBoss and CMT .

The Session Factory A in userdata.ear
and Session Factory B in userlog.ear


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 04, 2006 7:36 am 
Newbie

Joined: Thu Jul 21, 2005 10:17 am
Posts: 17
any help ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

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.