[jboss-user] [JBoss Seam] - Null EntityManager

ccanning do-not-reply at jboss.com
Thu Nov 30 15:17:59 EST 2006


Hi I have a seam pojo annotated as

    @PersistenceContext (type=EXTENDED)
    private EntityManager em;

and I have the factory method

    @Factory ("foobar")
    @SuppressWarnings ("unchecked")
    public void findAllFoobars() {
        foobars = em.createQuery("from Foobar f").getResultList();
    }

When the factory method is called, the entity manager is null. Does anyone have any idea why this would occur? All my other objects based on EntityHome<> work fine.

Oh yeah, I am using 1.1 CR1.

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

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



More information about the jboss-user mailing list