This class is used to lookup or create a ProcessInstance given
an inbound BexeeMessage and dispatch the message to the
bexee.core.ProcessController either synchronously or asynchronoulsy.
To do this, create the object and then use its
Dispatcher.dispatch() method.
When the Dispatcher kicks off the
ProcessController it will know, whether a synchronous or
asynchronous BPEL process is to be started. Depending on that it will either
return right away after starting the process for an asynchronous BPEL process
or it will wait until the result is available for a synchronous BPEL process.
Either way the ProcessController 's
processMessage() method is started in a new Thread, but in
case of a synchronous BPEL process the Dispatcher will wait
until the result is available. This happens by obtaining a lock on the
ProcessContext , which will notify the Dispatcher
when the result is available.
version: $Revision: 1.11 $, $Date: 2004/12/09 12:34:18 $ author: Patric Fornasier author: Pawel Kowalski |