Hi Pete,

I have the same problem. I created a subClass @override schedule method, which 
loads schedules from database. When I inject @In entityManager, it also got 
null. I don't have any idea how to deal with this situation. Could you please 
give some guidance? Thank you very much in advance.

    @Override
  |     protected Collection loadEntries(Date startDate, Date endDate) {
  |         List selection = em.createQuery(
  |                             "select ea.event from EventAttendee ea " +
  |                             "where ea.attendee = :person")
  |                             .setParameter("person", user)
  |                             .getResultList();
  |         System.out.println("event size ===" + selection.size());
  |         return selection;
  |     }

Best wishes,

Gus

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073342
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to