[
https://issues.jboss.org/browse/AS7-1158?page=com.atlassian.jira.plugin.s...
]
Sebastian Jancke commented on AS7-1158:
---------------------------------------
Create a startup-singleton EJB, and follow the Quartz-Docu to build a Quartz-Scheduler.
You will need a jta-managed datasource and an unmanaged datasource (no jta) for Quartz. To
integrate with the container, use a custom JobFactory for EJB/CDI-Lookup.
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/jb...
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira