Ok thanks!  I added that entry to the components.xml, which appears to fix the 
main issue.  However, I'm now having two other problems with the async service.

The first is the following errors in the logs (although they don't appear to 
prevent the method from running:


  | 14:08:31,304 INFO  [EJB3Deployer] Deployed: 
file:/opt/jboss-4.0.5.GA/server/default/deploy/10MinuteMail.ear/10MinuteMail.jar/
  | 14:08:31,366 INFO  [JmxKernelAbstraction] installing MBean: 
jboss.j2ee:ear=10MinuteMail.ear,jar=jboss-seam.jar,name=Dispatcher,service=EJB3 
with dependencies:
  | 14:08:31,598 INFO  [EJBContainer] STARTED EJB: 
org.jboss.seam.core.Dispatcher ejbName: Dispatcher
  | 14:08:31,729 INFO  [EJB3Deployer] Deployed: 
file:/opt/jboss-4.0.5.GA/server/default/deploy/10MinuteMail.ear/jboss-seam.jar
  | 14:08:31,742 INFO  [TomcatDeployer] deploy, ctxPath=/10MinuteMail, 
warUrl=.../deploy/10MinuteMail.ear/10MinuteMail.war/
  | 
  | 
  | 14:08:31,766 ERROR [TimerImpl] Error invoking ejbTimeout: 
java.lang.RuntimeException: java.lang.IllegalStateException: Attempted to 
invoke a Seam component outside the context of a web application
  | 14:08:31,767 ERROR [TimerImpl] Error invoking ejbTimeout: 
java.lang.RuntimeException: java.lang.IllegalStateException: Attempted to 
invoke a Seam component outside the context of a web application
  | 
  | 
  | 14:08:31,923 INFO  [ServletContextListener] Welcome to Seam 1.1.0.BETA1
  | 14:08:31,934 INFO  [Initialization] reading components.xml
  | 14:08:32,166 INFO  [Initialization] reading properties from: 
/seam.properties
  | 14:08:32,169 INFO  [Initialization] reading properties from: 
/jndi.properties
  | 14:08:32,213 INFO  [Initialization] initializing Seam
  | 


The other problem is that the method gets called almost continuously.  I don't 
know if it's every second, or immediately after the previous completion or 
what.  I'm passing in 600,000 as the interval, I'm assuming that's 
milliseconds?  So that should be every 10 minutes, I think.


  |     @Create
  |     public void doStartService() {
  |         mLog.info("Starting up...");
  |         mClientMap = new HashMap<String, SessionMailQueue>();
  |         mLog.info("Kicking off recurring email processor.");
  |         this.mEmailService.processEmailsRecurring(new Date(), 600000);
  |     }
  | 

However it just runs the method repeatedly without a pause.

Any suggestions would be appreciated.  Thanks for all your help.

Regards,

Modoc

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981897
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to