[jboss-user] [EJB 3.0] - EntityManager not mounted under JNDI despite config
aidan_b5
do-not-reply at jboss.com
Thu Aug 24 04:49:41 EDT 2006
Despite having the following persistence.xml:
<persistence-unit name="objentity">
| <jta-data-source>java:/ShipdbDS</jta-data-source>
| <properties>
| <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
| <property name="hibernate.hbm2ddl.auto" value="update"/>
| <property name="jboss.entity.manager.jndi.name" value="java:/Objentity"/>
| </properties>
| </persistence-unit>
when i do a jndi lookup for the manager thus:
InitialContext ic = new InitialContext();
| EntityManager em = (EntityManager) ic.lookup("Objentity");
I get an 'Objentity not bound' Exception. I've checked the JMX console and the persistence units are bound....but there's no sign of the entity manager.
I'm using jboss 4.03 with EJBRC6......this is fairly urgent so help definately appreciated!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967173#3967173
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967173
More information about the jboss-user
mailing list