I have several EntityManagerFactory in my application, created using an
Ejb3Configuration using method (createEntityManagerFactory()).
I need to update the factory every time i add a new Annotated class (EntityBean) to the ejb3Configuration instance using the method addAnnotatedClass(Class clazz) but i can`t see any method i can use to update the factory, to make it recognize the new EntityBean.
If i want to do it, i have to create a new EntityManagerFactory from the Ejb3Configuration updated.
Any comments to make it will be appreciated.
|