Use the @PersistenceContext annotation.

Example:


  | 
  | class SomePojo {
  | 
  |   @PersistenceContext
  |   private transient EntityManager entityManager;
  | 
  |    .....
  | 
  | }
  | 
  | 

I advice you to read the  EJB3 documentation or take a look at the nice 
http://trailblazer.demo.jboss.com/EJB3Trail/  website. 

Knowlage about EJB3 is really needed if you want to use Seam.

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

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

Reply via email to