[jboss-user] [EJB/JBoss] - Re: What does this mean? Not binding factory to JNDI, no JND

Rhodan76 do-not-reply at jboss.com
Tue Mar 13 04:32:10 EDT 2007


In case you are using EJB3/Hibernate with jboss, this means that you have not explicit specified to bind the EntityManagerFactory (aka SessionFactory) to  JNDI. So you cannot look up for the SessionFactory in JNDI.

To register the SessionFactory in JNDI you have to specify it in persistence.xml via following entry:

<property name="hibernate.session_factory_name" value="java:hibernate/SessionFactory" />
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027436#4027436

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027436



More information about the jboss-user mailing list