If you can use JavaBeans rather than EJB3 this will work (with Seam from CVS since Gavin
fixed
http://jira.jboss.com/jira/browse/JBSEAM-679)
@Startup(depends="manager")
| @Scope(ScopeType.APPLICATION)
| public class Controller {
|
| @In(create=true)
| private Manager manager;
|
| @Create
| public void create() throws Exception {
| // Schedule
| manager.schedule(...);
| }
|
| }
@Name("manager")
| @Scope(ScopeType.EVENT)
| public class Manager {
|
| @Transactional
| @Asynchronous
| public void schedule(...) {
| ...
| }
| }
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006809#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...