[jboss-user] [EJB 3.0] - POJO calling EJB3

dkalna do-not-reply at jboss.com
Tue Feb 13 09:06:39 EST 2007


Hi, I have simple (well may be not that simple) question:

I have POJO that implements specific interface as a part of JEE application. Can I inject EJB into this POJO? Or even EntityManager?

for example:


  | public class MyClass implements MyInterface {
  | 
  |     @EJB
  |     private SomeBean someBean;
  | 
  |     @PersistenceContext
  |     private EntityManager em;
  |     
  | }
  | 

Thanks a lot for your help

Bye
Dalibor

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

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



More information about the jboss-user mailing list