[jboss-user] [JBoss Seam] - Re: Scheduling in Seam?

modoc do-not-reply at jboss.com
Mon Oct 30 21:42:48 EST 2006


Ok.  It seems to work correctly now.  Thank you for all your help!

The only thing that isn't quite right, and it doesn't seem to keep the timer from running, is this error:


  | 18:37:45,877 ERROR [TimerImpl] Error invoking ejbTimeout: java.lang.RuntimeException: java.lang.IllegalStateException: Attempted to invoke a Seam component outside the context of a web application
  | 

This only appears when I invoke the Asynchronous method from a @Create method on a component annotated with @Startup.  I.e. when it's invoked by the container at startup, and not in the course of a user action.

If I invoke the Async method from a page, I don't see the error.  Either way, the timer appears to function correctly after that error message.

Are Seam timers not meant to be used for server level (non-user based) processes?  

Thanks!

Modoc

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

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



More information about the jboss-user mailing list