[jboss-user] [jBPM] - Re: timer job issues when disposing session in embedded j2ee process

umberto maguolo do-not-reply at jboss.com
Tue Jun 25 12:49:26 EDT 2013


umberto maguolo [https://community.jboss.org/people/umb71] created the discussion

"Re: timer job issues when disposing session in embedded j2ee process"

To view the discussion, visit: https://community.jboss.org/message/824826#824826

--------------------------------------------------------------
Hi Jiri,
you're right, i ain't been so clear:  i've modified the Maciej's CMTDisposeCommand class, in the afterCompletion method i've introduced the registration on the ProcessEventListener interface and implemented the afterProcessCompleted method, as a mechanism to wait for process completion. As i said, the timer in the process and the process itself are terminated when i enter in the afterProcessCompleted method, so i don't think that's the problem. But you have given me a correct suggestion when you said that the events listeners are part of the session, so it's probably not correct dispose the session when i'm in the afterProcessCompleted. I will try to wait for process completion directly in the afterCompletion method, using another strategy, and let you know the results.

In the mean time i thank you very much your help.
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://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/20130625/94d19865/attachment.html 


More information about the jboss-user mailing list