[jboss-user] [jBPM] - Re: Question about using Timer node
Yu Chai
do-not-reply at jboss.com
Mon Dec 19 16:57:06 EST 2011
Yu Chai [http://community.jboss.org/people/cross.cy] created the discussion
"Re: Question about using Timer node"
To view the discussion, visit: http://community.jboss.org/message/642333#642333
--------------------------------------------------------------
Hi Marco,
Thank you very much for the suggestion. I think the first point addressed my issue exactly. I reviewd my project code and test java code and found in my project code i called ksession.dispose in "finally" satement but in test code I didn't. After i removed the finally statement it worked! Apparently the ksession has been disposed before the timer expires.
Ksession.dispose() is needed to recycle the memory. So could you please suggest where the best place is to dispose the ksession?
Meanwhile, given the fact ksession needs to be alive for the timer to trigger, can I trigger the timer in an asynchronous way? So that when timer expires the ksession can be resumed using JPAKnowledgeService to continue the process instance.
Thanks again Marco!
Best regards
Yu
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/642333#642333]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111219/ab5d734b/attachment.html
More information about the jboss-user
mailing list