[jboss-user] [jBPM] - Re: Commit transaction after each service task?
Mauricio Salatino
do-not-reply at jboss.com
Mon Aug 27 07:04:23 EDT 2012
Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion
"Re: Commit transaction after each service task?"
To view the discussion, visit: https://community.jboss.org/message/756142#756142
--------------------------------------------------------------
Hi Richard,
No I didn't mean creating a new thread.. because if the JVM crash you will loose that thread.
You SHOULD NOT DO THAT! :) (I'm not screaming with the capital letters.. it's just to emphazise it)
I was suggesting something like:
public void executeWorkItem(final WorkItem workItem, final WorkItemManager manager) {
* *
// SEND A Message to a QUEUE which will be processed by another component
// SEND THE WORKITEM ID AS PAYLOAD OF THE MESSAGE AND ALSO THE SESSION ID
// SO THE OTHER COMPONENT CAN RELOAD THE SESSION AND CONTINUE THE EXECUTION with manager.completeWorkItem(workItem.getId(), results);
}
Cheers
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/756142#756142]
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/20120827/319c7329/attachment.html
More information about the jboss-user
mailing list