-->
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.  [ 4 posts ] 
Author Message
 Post subject: Jboss 4.0.2AS, Hibernate 3.0 Installation/Cofiguration
PostPosted: Fri Aug 05, 2005 10:50 am 
Newbie

Joined: Fri Aug 05, 2005 10:38 am
Posts: 11
Hi all,

i installed jboss 4.0.2. I want hibernate to work behind a sessionbean facade. Session Beans work fine, but if i try to work with hibernate i always get some exception :´( Mappings also work well under Tomcat (without sessionbeans).

Can perhaps someone give me a example how to cofigure a simple application under jboss with Hibernate 3.0.x?
I read a lot about registering SessionFactory as Jboss MBean and so on,
but didn´t find any example application that is deployable. Does any example exist or are there always only source pieces?

I am already really confused and would be glad for every answer.

Regards

Peter


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 05, 2005 11:29 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Sure there are some in jboss cvs:
http://cvs.sourceforge.net/viewcvs.py/jboss/jboss-docs/gettingstarted/code/examples/hibernate/?only_with_tag=HEAD for example.

There is also the wiki page for JBoss-hibernate integration:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossHibernate

I have a todo item to pull alot of this information together along with an example app as part of the Hibernate documentation. But I will not have a chance to get to that until after Hibernate 3.1 and JBossAS 4.0.3 are released.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 05, 2005 4:11 pm 
Newbie

Joined: Tue Aug 02, 2005 12:14 pm
Posts: 11
A JTA transaction must be started before a Hibernate session is bound. There is a tread-safe way of doing this with servlets, but if you use EJBs JTA and thread part is taken care of. For examples and further explanation also see http://www.hibernate.org/168.html.

_________________
Artemis


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 25, 2005 5:20 am 
Newbie

Joined: Tue Oct 25, 2005 5:12 am
Posts: 5
jboss: 4.0.3SP1
hibernate: 3.0.5
system: linux 64bit
mapping: provide by xdoclet, works great and junit is also fine
java: 5.0

hi thx for your information,

do you have some code for me, because the website doe's not longer exist...


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