Gary tse [http://community.jboss.org/people/garytse] created the discussion

"Why is Timer event not triggered in J2EE container?"

To view the discussion, visit: http://community.jboss.org/message/619372#619372

--------------------------------------------------------------
Hi all,

I have a timer event that is suppose to automatically trigger after 3 minutes.  

When I'm testing it on standalone Java program, the bpmn works fine and the 
task following the timer event gets triggered.

However, the timer event just never gets triggered after I put the 
StatefulKnowledgeSession into a EJB on the server.

This is a portion of the timer (bpmn2)

    <boundaryEvent id="_5" name="TimerEvent" attachedToRef="_4" 
cancelActivity="false" >
      <timerEventDefinition>
        <timeDuration xsi:type="tFormalExpression">180s</timeDuration>
      </timerEventDefinition>
    </boundaryEvent>



My stateless session EJB looks like this:
...
public class CommandDelegate implements SessionBean, ICommandDelegateLocalBM, 
ICommandDelegateRemoteBM {
 
private static StatefulKnowledgeSession  stateful;
 
public void startProcess(String processId, Map<String, Object> parameters) {
   stateful.startProcess(processId, parameters);
}



Here is my test client:

context = new InitialContext(env);
Object obj = context.lookup("ejb/CommandDelegateRemote");
remoteHome = 
(CommandDelegateRemoteHome)PortableRemoteObject.narrow(obj,CommandDelegateRemoteHome.class);
remote = remoteHome.create();
...
remote.startProcess("TestTimerBPMN", params);



Any ideas anyone?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/619372#619372]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to