http://docs.jboss.com/seam/1.0.1.GA/reference/en/html/configuration.html#d0e4853

@PeristenceContext/@PersistenceContext(type=EXTENDED) are the EJB3/JPA standard 
annotations for injecting a PC.  @In(create=true) is the Seam way, which, as 
discussed in the manual, means that LazyInitialisationExceptions don't occur.  

In short, you will get an LIE if you try to access an object outside the 
session (transaction?) in which it is loaded with @PersistenceContext, you 
won't with @In(create=true).  The downside to @In(create=true) is that it is 
Seam specific so won't work if you access the bean outside Seam. 

I'm developing a Seam/JSF only application so nearly always use a Seam Managed 
PC.

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

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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to