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

Julio Faerman (JIRA) jira-events at lists.jboss.org
Thu May 19 18:44:01 EDT 2011


    [ https://issues.jboss.org/browse/JBSEAM-4216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603286#comment-12603286 ] 

Julio Faerman commented on JBSEAM-4216:
---------------------------------------

I have this exact same issue. If there is a workaround, please post.

> Seam Component with EJB Timer
> -----------------------------
>
>                 Key: JBSEAM-4216
>                 URL: https://issues.jboss.org/browse/JBSEAM-4216
>             Project: Seam 2
>          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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list