[jboss-dev-forums] [Design of EJB 3.0] - EntityManager and EntityManagerFactory rebind in JNDI
ALRubinger
do-not-reply at jboss.com
Wed Oct 11 03:22:49 EDT 2006
Hoping for opinions on a feature request.
If multiple persistence units are defined and configured incorrectly by the developer to be bound to the same JNDI address, new EntityManagers and EntityManagerFactories silently replace the old ones in JNDI via a call to InitialContext "rebind".
I'd like to modify this to either throw a RuntimeException if the requested destination address is already bound, or at least issue a WARN-level log statement.
If approved I'll open a feature request in JIRA and submit relevant code in org.jboss.ejb3.entity.PersistenceUnitDeployment.start() to address.
Thanks, all.
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977445#3977445
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977445
More information about the jboss-dev-forums
mailing list