-->
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.  [ 2 posts ] 
Author Message
 Post subject: Multiple Ejb3Configuration
PostPosted: Thu Jul 06, 2006 12:15 pm 
Newbie

Joined: Thu Jul 06, 2006 12:01 pm
Posts: 5
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Greetings,

My application requirements needs to use different databases in any time. I'm currently using EJB3 implementation of JBOSS, the application creates new entities on the fly, and must add it to the Jboss environment, the problem is i cant make a full undeploy/redeploy in the container just to let jboss know about the new entity beans that my application is creating.

I have tryied using Ejb3Persistence to create new configurations programmatically, then i can add the entity beans that the application is creating using the method "addAnnotatedClass(Class clazz)". The problem is i'm using using different databases, so i have to create different Ejb3Configuration, now, the real problem is that when i create a new configuration, the server just drop the configurations that ive created before.

Is there only one Ejb3Configuration per application ??

what different approaches can i use to work around this issue.

Any comment will be appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 9:16 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
you can have as many ejb3configuration and EntityManagerFactory as you want. You need to be more specific with "the server just drop"

_________________
Emmanuel


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