Maurice de Chateau [http://community.jboss.org/people/MohReece] created the 
discussion

"Re: Start a second process (Fire and forget).."

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

--------------------------------------------------------------
Hi Gary,

I think your problem may be coming from the fact that 'normally' processes run 
synchronous, and that the JobExecutor (which is used to run asynchronous 
portions) is configured to use only one thread.

Therefore, even though you're using the 'async=true' attribute there will be 
one thread continuing the execution until it returns. Before the async part 
starts, the calling thread was used to execute the (first) process; the 
JobExecutor then takes over to execute the asyn Action (in your first process) 
and calls the second process, which starts to execute in that same thread - so 
the first process can do nothing but wait until that thread becomes available 
again before it can complete.

The solution lies in making (part of) the second process async; that gives the 
first process the opportunity to gain control again (the async executions are 
simply actions on a timer stack) before the second process is picked up again 
to continue.

Hope this helps a bit...

Regards,
Maurice
--------------------------------------------------------------

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

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