This content has been marked as final.
Show 3 replies
-
1. Re: timer in ear: nothing happens
kukeltje Aug 14, 2009 11:14 AM (in response to parszab)It's in the docs: http://docs.jboss.org/jbpm/v3.2/userguide/html_single/#d0e140
-
2. Re: timer in ear: nothing happens
parszab Aug 17, 2009 7:45 AM (in response to parszab)"kukeltje" wrote:
It's in the docs: http://docs.jboss.org/jbpm/v3.2/userguide/html_single/#d0e140
Thanks a lot! I missed that unfortunately!
In my experiments, though I tried to set up the environment with EntityScheduler:<service name="scheduler" factory="org.jbpm.scheduler.ejbtimer.EntitySchedulerServiceFactory" />
It seems to work: I get an exception ("Transaction is not active: tx=TransactionImple < ac") -- but the timers are created and run properly. -
3. Re: timer in ear: nothing happens
parszab Aug 17, 2009 8:44 AM (in response to parszab)"parszab" wrote:
It seems to work: I get an exception ("Transaction is not active: tx=TransactionImple < ac") -- but the timers are created and run properly.
I beleive it is because the CMT transactions don't get propagated to the TimerEntity bean somehow when the timers are created. One issue is that the timers don't get deleted this way -- at least that is, what the log says:14:37:49,853 WARN [DatabasePersistencePolicy] Unable to delete timer org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImple < ac, BasicAction: 7f000101:90b1:4a894efe:9a status: ActionStatus.ABORTED >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: 7f000101:90b1:4a894efe:9a status: ActionStatus.ABORTED >) at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95) at org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin.deleteTimer(GeneralPurposeDatabasePersistencePlugin.java:311) at org.jboss.ejb.txtimer.DatabasePersistencePolicy.deleteTimer(DatabasePersistencePolicy.java:139) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) at $Proxy243.deleteTimer(Unknown Source) at org.jboss.ejb.txtimer.TimerServiceImpl.shutdown(TimerServiceImpl.java:138) ....