I am using JBoss 6.1,When i deploy my application,i get the below warning.
WARN [org.hibernate.ejb.internal.EntityManagerFactoryRegistry] (ServerService Thread Pool -- 65) HHH000436: Entity manager factory name (MY_PERSISTENCE) is already registered. If entity manager will be clustered or passivated, specify a unique value for property 'hibernate.ejb.entitymanager_factory_name
Can some one please help on how to over come this warning.
Thanks in Advance.
I can offer only some thin advice here, since I have been working with Wildfly 8/9 recently. I would try undeploying (or shutting down, deleting your war/ear from the deployment directory, and restarting) Jboss 6. Then look at either your server and/or boot logs, or the jmx-console, to see if you already have something out there called MY_PERSISTENCE). If it is there, you know that something else that either you deployed yourself, or which came with JBoss has an entity manager factory called MY_PERSISTENCE (I don't think it has something called that. Rather java:/ExampleDS is more likely). If that is the case, just rename your entity manager factory name to something else and redeploy it. In fact, I doubt this could be the problem, because I think JBoss even back at '6 had partitioning of the JNDI namespace.
Otherwise, if after undeploying your app, you find there is no MY_PERSISTENCE anywhere, it could mean you are redundantly defining this within your own application. Do you perhaps have your context getting loaded two different ways? Two copies of the configuration file?
Sorry I cannot be more explicit. I hope I have helped.
If a chicken that is half full crosses the road, will anyone hear it?
Get off me! Here, read this tiny ad:
how do I do my own kindle-like thing - without amazon