-->
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: Hibernate Session in JBossAS
PostPosted: Mon Apr 24, 2006 12:12 pm 
Beginner
Beginner

Joined: Tue Sep 09, 2003 9:11 pm
Posts: 32
Is it possible to use the Hibernate Annotation Extensions in the JBossAS server? I'm actually going to give it a try right now in our sample app, I just wanted to make sure there isn't a reason technical reason we should not do this (other than portability which isn't a concern right now)?

Specifically, our current application is based on Hibernate and we are migrating to JSF/Seam/Facelets which means we are going to start running in an App Server (so we are going to start with JBossAS 4.x).

We are using several extensions (@TypeDefs, @Index, and Criterias) heavily in our application. In the sample app we put together, we are using a HibernateSession instead of an EntityManager.

However, we would use the EntityManager if we could use the Hibernate Annotation extensions unless there is a reason to stick with the HibSession.

I saw that in JBossAS we could cast the em to a HibSession, and I wanted to make sure there isn't a reason we should not use the annotation extensions.

Thanks,
Chris....

_________________
___________
Chris....
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 26, 2006 9:45 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
Quote:
I saw that in JBossAS we could cast the em to a HibSession, and I wanted to make sure there isn't a reason we should not use the annotation extensions.


Depends if you'll ever use your pojos in non-Hibernate environment ... like maybe BEA with Kodo, ...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 27, 2006 10:34 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
As long as you're ok to use the Hibernate engine underneath, there is absolutly no problem. JBoss EJB3 works on top of Hibernate EntityManager and Annotations.

_________________
Emmanuel


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.