[jboss-user] [JBoss Seam] - Null EntityManager after upgrading to Seam 2.0 Beta1
tuxzilla
do-not-reply at jboss.com
Thu Jun 28 20:38:58 EDT 2007
I have a pojo bean annotated as @Startup and with entityManager injected. After upgrading to 2.0 Beta1 and JBoss 4.2 the init method of the bean annotated with @Create complained about null entityManager during startup. It used to work fine under Seam 1.2.1GA and JBoss 4.0.5.
| @Startup
| @Scope(ScopeType.APPLICATION)
| @Name("categoryCache")
| public class CategoryCacheBean implements CategoryCache {
|
| @In
| private EntityManager entityManager;
|
| @Create
| public void init() {
| list = entityManager.
| createQuery(...).getResultList();
| }
| }
|
Any ideas?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058983#4058983
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058983
More information about the jboss-user
mailing list