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.