[jboss-user] [JBoss Seam] - Re: @Startup help...
petemuir
do-not-reply at jboss.com
Fri Jan 26 08:48:16 EST 2007
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#4006809
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006809
More information about the jboss-user
mailing list