Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Timer-Repeat does not work

Timer-Repeat does not work

2007-06-12       - By syngolis

 Back
Hello,

i am working with jbpm 3.2 from CVS in an enterprise environment (JBoss 4.0.5
.GA). I use the jbpm-enterprise.jar for ejb communication.

Everything works fine, except the repeat-functionality of the timers. I use the
following simple process:
<process-definition
 |   xmlns=""  name="test">
 |    <swimlane name="initiator"></swimlane>
 |    <start-state name="start">
 |       <task name="task" swimlane="initiator"></task>
 |       <transition name="" to="sometask"></transition>
 |    </start-state>
 |    <end-state name="end1"></end-state>
 |    <task-node name="sometask">
 |       <timer name="reminder" duedate="30 seconds" repeat="10 seconds" >
 |         <action class='MessageActionHandler' />
 |       </timer>
 |       <task name="task1" swimlane="initiator"></task>
 |       <transition name="" to="end1"></transition>
 |    </task-node>
 | </process-definition>

After execution of the task-node, a job for the timer is created and it becomes
executed at the duedate. The job keeps staying in db but there is no further
timer execution (repeat after 10 sec).
With jbpm 3.1.4 (no ejb) i got no such problems

jbpm.cfg.xml:
<service name="scheduler" factory="org.jbpm.scheduler.ejbtimer
.EjbSchedulerServiceFactory" />

The following excerpt is from jboss logs (hibernate messages ignored):

2007-06-12 12:33:04,593 DEBUG [org.jboss.ejb.txtimer.TimerImpl] run: [id=1
,target=[target=jboss.j2ee:jndiName=local/TimerServiceBean@(protected),service=EJB]
,remaining=0,periode=0,active]
 | 2007-06-12 12:33:04,593 DEBUG [org.jboss.ejb.txtimer.TimerImpl]
setTimerState: in_timeout
 | 2007-06-12 12:33:04,625 DEBUG [org.jbpm.scheduler.ejbtimer.TimerServiceBean
] ejb timer [id=1,target=[target=jboss.j2ee:jndiName=local/TimerServiceBean
@(protected),service=EJB],remaining=-32,periode=0,in_timeout] fires
 | 2007-06-12 12:33:04,640 DEBUG [org.jbpm.ejb.impl.CommandServiceBean]
handing over the command execution to the command service
 | 2007-06-12 12:33:04,640 DEBUG [org.jbpm.configuration.JbpmContextInfo]
creating jbpm context with service factories '[tx, message, scheduler, logging,
persistence, authentication]'
 | 2007-06-12 12:33:04,640 DEBUG [org.jbpm.JbpmContext] creating org.jbpm
.JbpmContext@(protected)
 | 2007-06-12 12:33:04,640 DEBUG [org.jbpm.ejb.impl.CommandServiceBean]
executing org.jbpm.scheduler.ejbtimer.ExecuteTimerCommand@(protected)
 | 2007-06-12 12:33:04,640 DEBUG [org.jbpm.persistence.db
.DbPersistenceServiceFactory] creating persistence service
 |
 | [..]
 |
 | 2007-06-12 12:33:04,640 DEBUG [org.jbpm.scheduler.ejbtimer
.ExecuteTimerCommand] executing timer 38
 |
 | [...]
 |
 | 2007-06-12 12:33:04,656 DEBUG [org.jbpm.job.Timer] executing timer 'timer
(reminder,12:33:04,000)'
 |
 | [...]
 |
 | 2007-06-12 12:33:04,703 INFO  [STDOUT] Timer executed
 | 2007-06-12 12:33:04,703 DEBUG [org.jbpm.job.Timer] updated timer for
repetition 'timer(reminder,12:33:14,000)' in '9297' millis
 | 2007-06-12 12:33:04,703 DEBUG [org.jbpm.JbpmContext] closing JbpmContext
 | 2007-06-12 12:33:04,703 DEBUG [org.jbpm.svc.Services] closing service
'persistence': org.jbpm.persistence.db.DbPersistenceService@(protected)
 | 2007-06-12 12:33:04,703 DEBUG [org.jbpm.svc.Services] closing service 'tx':
org.jbpm.tx.TxService@(protected)
 |
 | [...]
 |
 | 2007-06-12 12:33:04,812 DEBUG [org.jboss.ejb.txtimer.TimerImpl] commit: [id
=1,target=[target=jboss.j2ee:jndiName=local/TimerServiceBean@(protected),service
=EJB],remaining=-219,periode=0,in_timeout]
 | 2007-06-12 12:33:04,812 DEBUG [org.jboss.ejb.txtimer.TimerImpl]
setTimerState: expired
 | 2007-06-12 12:33:04,812 DEBUG [org.jboss.ejb.txtimer.TimerImpl] killTimer:
 |

Is it correct, that the timer becomes expired (setTimerState: expired)?

Does anyone has an idea, why my timers are not repeated?

Many thanks in advance for your help!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic
&p=4053469#4053469

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4053469
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.