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]
_______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user