This discussion is archived
0 Replies Latest reply: Oct 26, 2011 2:57 AM by 896272 RSS

WebLogic 10.3 Jndi Issue on EntityListener

896272 Newbie
Currently Being Moderated
Hello,
I'm new of weblogic, I'm using JPA under weblogic with ejb, I need to call an Ejb from an EntityListener class the entity is signed with annotation @EntityListeners(MainListener.class)
in MyListener when every event is triggered, like @PreUpdate I can't call an EJB, I can't lookup it, with @EJB injection the object is null and with the context lookup I got a ClassCastException, how can I do it? Is it possible to call and EJB from EntityListener?
I can't see in the JndiTree of weblogic console, the local interface, only the remote!
Thanks in advance

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points