-->
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: How to deploy annotated entities (EJB/Hibernate3) in jboss?
PostPosted: Mon Mar 14, 2005 4:21 pm 
Beginner
Beginner

Joined: Mon Mar 14, 2005 4:16 pm
Posts: 27
Hi,

I am doing some tests with hibernate annotations. I've created some entities and I would like to deploy them to the jboss server. I used to do this with a deployment descriptor in a sar... but now I have to use a file with .ejb3 extension. How do I set a SessionFactory that loads annotated classes in this .ejb3? Do I have to use also a jboss-service.xml descriptor?

Any hint will be appreciated,

Best regards,

Bruno


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 18, 2005 5:17 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Are you using the JBoss EJB3 implementation?

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 18, 2005 5:28 am 
Beginner
Beginner

Joined: Mon Mar 14, 2005 4:16 pm
Posts: 27
Finally, I've tried two approaches. First I tried the jboss ejb3 implementation and I looked for ways to play with the Entity Manager but I did not find a way to control the session as it is possible to do when using hibernate3 and a jboss service that puts the session factory in the jndi context. The second approach I've tried with success is to implement another HibernateServiceMBean that allows to create a AnnotationConfiguration object so I can read my entity metadata using hibernate3 annotations alpha.

All that I wanted to do is to find a way to play with annotated entities that can be deployed in jboss and put the session factory in the context. Configuration of entities with metadata is straight-forward and I like this :-)

Best regards,

Bruno


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 18, 2005 5:52 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
It'll come...

_________________
Emmanuel


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.