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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...