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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user