[jboss-jira] [JBoss JIRA] Commented: (AS7-1158) EJB-Timer Implementation is missing / not integrated

Thomas T (JIRA) jira-events at lists.jboss.org
Wed Jul 27 07:50:23 EDT 2011


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

Thomas T commented on AS7-1158:
-------------------------------

Sebastian,
would you please tell me how the workaround with quartz does look like exactly?

For me this is a blocker to get my app running with AS7 without a functional TimerService .

Thx.
Thomas

> EJB-Timer Implementation is missing / not integrated
> ----------------------------------------------------
>
>                 Key: AS7-1158
>                 URL: https://issues.jboss.org/browse/AS7-1158
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: EJB
>    Affects Versions: 7.0.0.CR1
>            Reporter: Sebastian Jancke
>            Assignee: jaikiran pai
>              Labels: ejb3, timer
>
> EJB-Component is missing an integrated EJB-Timer-Implementation.
> Creating a time from within an EJB gives the following stacktrace:
> ...
> {code}
> Caused by: java.lang.UnsupportedOperationException: This is a temporary non-functional timerservice. No operations are allowed on it.
>         at org.jboss.as.ejb3.component.EJBComponent$NonFunctionalTimerService.<init>(EJBComponent.java:337)
>         at org.jboss.as.ejb3.component.EJBComponent$NonFunctionalTimerService.<init>(EJBComponent.java:335)
>         at org.jboss.as.ejb3.component.EJBComponent.getTimerService(EJBComponent.java:200)
>         at org.jboss.as.ejb3.component.TimerServiceBindingSource$TimerServiceManagedReference.getInstance(TimerServiceBindingSource.java:81)
>         at org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptor.java:64)
> {code}
> The problem is a missing piece in the EJBComponent.java(line 198): 
> {code}
>     public TimerService getTimerService() throws IllegalStateException {
>         // TODO: Temporary, till we have a working timerservice integrated
>         return new NonFunctionalTimerService();
>     }
> {code}
> https://github.com/jbossas/jboss-as/blob/master/ejb3/src/main/java/org/jboss/as/ejb3/component/EJBComponent.java#L198

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list