[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-4216) Seam Component with EJB Timer

Israel Fonseca (JIRA) jira-events at lists.jboss.org
Wed Jun 3 09:19:56 EDT 2009


Seam Component with EJB Timer
-----------------------------

                 Key: JBSEAM-4216
                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4216
             Project: Seam
          Issue Type: Bug
          Components: EJB3
    Affects Versions: 2.1.1.GA
         Environment: Ubuntu 8.10 x64, JBoss-AS 4.2.3.GA
            Reporter: Israel Fonseca


If a Seam component that triggers a timmer is used, an exception may be throw in the JBoss starting:

13:55:53,646 ERROR [TimerImpl] Error invoking ejbTimeout: java.lang.RuntimeException: java.lang.IllegalStateException: Attempted to invoke a Seam component outside an initialized application

And it does make sense, since the timer service tries to execute a method of a seam component before the seam application is started. To solve this i think that EJBs that are seam components should only be started after all the aplications in the server get started, or something like this.

I tested it using a timer that generates a log (@Logger) at every minute, and restarting the server (the delayed timmer would be triggered before the Seam App is up).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list