-->
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.  [ 8 posts ] 
Author Message
 Post subject: Hibernate JCA
PostPosted: Thu Mar 08, 2007 12:11 pm 
Newbie

Joined: Mon Mar 05, 2007 10:51 am
Posts: 5
Where can I find the Hibernate distribution shipped as a Resource Adaptor( .rar).


Hibernate version:3.x


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 11, 2007 7:57 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
It was not really maintained and has been deprecated, the proper EE integration is done through JavaEE 5 and EJB 3.0

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Hibernate JCA
PostPosted: Wed Mar 14, 2007 10:45 am 
Newbie

Joined: Mon Mar 05, 2007 10:51 am
Posts: 5
emmanuel wrote:
It was not really maintained and has been deprecated, the proper EE integration is done through JavaEE 5 and EJB 3.0


But what about the J2EE 1.4 .The JCA was in my opinion is the perfect integration between sessionbean and Hibernate framework.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 14, 2007 1:38 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Use Sf.getCurrentSession()
The programmatic model is better and lead to the work we did in EJB 3

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Hibernate JCA
PostPosted: Thu Mar 15, 2007 12:47 pm 
Newbie

Joined: Mon Mar 05, 2007 10:51 am
Posts: 5
emmanuel wrote:
Use Sf.getCurrentSession()
The programmatic model is better and lead to the work we did in EJB 3

Is it safe that in a session context to make that call??


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 15, 2007 5:01 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
What do you mean?

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 05, 2007 2:46 am 
Newbie

Joined: Mon Mar 05, 2007 10:51 am
Posts: 5
emmanuel wrote:
What do you mean?

It means that if it is safe that inside a session bean it is safe to call that line.
And depending o the transaction (container or bean managed transaction) shoud I call the Hibernate session different .Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 4:59 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
if you are using CMT, then it is safe, use the JTA session context
If you are sure a JTA tx has been started, then it is safe too

If you want a custom way to define the session boundaries, you can implement you own CurrentSessionContext

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 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.