I like your idea of a context, post on the seam dev forum about this. Seems
there should be a transactional context that you can add/remove things from.
In the meantime, something you might want to think about:
@Stateful
public class MyBean ... {
@PersistenceContext(unitName="mypu", type=EXTENDED) myPC;
@EJB AnotherStateful nested;
}
@Stateful
public class AnotherStatefulBean implements AnotherStateful {
@PersistenceContext(unitName="myPU", type=EXTENDED) myPC;
}
----
Since MyBean.nested is injected into MyBean these two stateful beans are
married to eachother and share the same lifecycle and same persistence contexts!
Bill
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945684#3945684
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945684
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user