[JBoss jBPM] - Re: Timer repetition functionality
by syngolis
The question is, what surplus do you get with the option to set repeat to 'no'? If don't want to repeat i don't set it.
It seems no to work (improper format of duration 'no' ):
anonymous wrote :
| 2007-06-29 15:05:00,609 ERROR [STDERR] ... 5 more
| 2007-06-29 15:05:00,609 ERROR [STDERR] Caused by: javax.ejb.TransactionRolledbackLocalException: couldn't execute org.jbpm.scheduler.ejbtimer.ExecuteTimerCommand@e415b8
| 2007-06-29 15:05:00,609 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:262)
| 2007-06-29 15:05:00,609 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
| 2007-06-29 15:05:00,609 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| 2007-06-29 15:05:00,609 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
| 2007-06-29 15:05:00,609 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| 2007-06-29 15:05:00,609 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
| 2007-06-29 15:05:00,609 ERROR [STDERR] at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
| 2007-06-29 15:05:00,609 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:954)
| 2007-06-29 15:05:00,609 ERROR [STDERR] at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
| 2007-06-29 15:05:00,609 ERROR [STDERR] at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
| 2007-06-29 15:05:00,609 ERROR [STDERR] at $Proxy59.execute(Unknown Source)
| 2007-06-29 15:05:00,781 ERROR [STDERR] at org.jbpm.scheduler.ejbtimer.TimerServiceBean.ejbTimeout(TimerServiceBean.java:95)
| 2007-06-29 15:05:00,781 ERROR [STDERR] ... 19 more
| 2007-06-29 15:05:00,781 ERROR [STDERR] Caused by: org.jbpm.JbpmException: couldn't execute org.jbpm.scheduler.ejbtimer.ExecuteTimerCommand@e415b8
| 2007-06-29 15:05:00,781 ERROR [STDERR] at org.jbpm.ejb.impl.CommandServiceBean.execute(CommandServiceBean.java:92)
| 2007-06-29 15:05:00,781 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
| 2007-06-29 15:05:00,781 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 2007-06-29 15:05:00,781 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 2007-06-29 15:05:00,781 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
| 2007-06-29 15:05:00,781 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
| 2007-06-29 15:05:00,781 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
| 2007-06-29 15:05:00,781 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
| 2007-06-29 15:05:00,781 ERROR [STDERR] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| 2007-06-29 15:05:00,781 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| 2007-06-29 15:05:00,781 ERROR [STDERR] ... 30 more
| 2007-06-29 15:05:00,781 ERROR [STDERR] Caused by: java.lang.IllegalArgumentException: improper format of duration 'no'
| 2007-06-29 15:05:00,781 ERROR [STDERR] at org.jbpm.calendar.Duration.(Duration.java:151)
| 2007-06-29 15:05:00,781 ERROR [STDERR] at org.jbpm.job.Timer.execute(Timer.java:105)
| 2007-06-29 15:05:00,781 ERROR [STDERR] at org.jbpm.scheduler.ejbtimer.ExecuteTimerCommand.execute(ExecuteTimerCommand.java:23)
| 2007-06-29 15:05:00,781 ERROR [STDERR] at org.jbpm.ejb.impl.CommandServiceBean.execute(CommandServiceBean.java:90)
| 2007-06-29 15:05:00,781 ERROR [STDERR] ... 39 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059180#4059180
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059180
17Â years, 5Â months
[EJB 3.0] - Can a EJB3 stateless bean extend another stateless bean?
by nsmith80
Let me give you a brief background on the task I'm trying to accomplish before my questions. I'm trying to set up a hierarchical user structure. This is the structure top down: Belo Admin, Regional Admin, DMA Manager, and DMA user. Each user needs to inherit the functions of the users below it.
Question 1: Can a session bean extend another session bean?
Question 2: Can a remote interface extend another remote interface?
My thought was that, if possible, I could for instance create my base DmaUser Remote interface and implement it in the DmaUserBean. Then I would have the DmaManager Remote interface extend DmaUser Remote interface and DmaManagerBean extend the DmaUserBean. Then work my way up the chain until the Belo Admin inherits all the properties of the user's below it. I've checked several different resources and perused the web looking for an answer without much luck.
The only other possibility that I found was the @EJB injection, but I'm not sure that would give me the results I'm looking for.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059174#4059174
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059174
17Â years, 5Â months