1 Reply Latest reply on Feb 15, 2006 11:37 AM by Boyd Hutton

    EntityManager not getting injected

    Boyd Hutton Newbie

      I'm working with version 4.03SP1.

      I have a stateful session bean

      public class ActivityManager implements Activity,Serializable {
       private EntityManager em;

      My persistence.xml
       <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
       <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>

      When any methods on the bean are called, the EntityManager "em" resolves to a null value. I have a similiar project where this works flawlessly using the same libraries and app-server instance.