org.smartcomps.twister.engine.priv.messaging.impl
Class DefaultMessageBrokerImpl

java.lang.Object
  |
  +--org.smartcomps.twister.engine.priv.messaging.MessageBroker
        |
        +--org.smartcomps.twister.engine.priv.messaging.impl.DefaultMessageBrokerImpl

public class DefaultMessageBrokerImpl
extends MessageBroker

A default implementation of the MessageBroker interface that does absolutely nothing.


Field Summary
 
Fields inherited from class org.smartcomps.twister.engine.priv.messaging.MessageBroker
WORKLIST_OP, WORKLIST_PT
 
Constructor Summary
DefaultMessageBrokerImpl()
           
 
Method Summary
 void asyncSend(java.lang.String partner, java.lang.String portType, java.lang.String operation, org.dom4j.Document message)
          Implement this method in your subclass to receive messages from the process engine and execute your own tasks accordingly.
static org.dom4j.Document getMessage(java.lang.String partner, java.lang.String portType, java.lang.String operation)
           
 org.dom4j.Document syncSend(java.lang.String partner, java.lang.String portType, java.lang.String operation, org.dom4j.Document message)
          Implement this method in your subclass to receive messages from the process engine and execute your own tasks accordingly.
 
Methods inherited from class org.smartcomps.twister.engine.priv.messaging.MessageBroker
asyncInvoke, syncInvoke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMessageBrokerImpl

public DefaultMessageBrokerImpl()
Method Detail

asyncSend

public void asyncSend(java.lang.String partner,
                      java.lang.String portType,
                      java.lang.String operation,
                      org.dom4j.Document message)
Description copied from class: MessageBroker
Implement this method in your subclass to receive messages from the process engine and execute your own tasks accordingly. Keep in mind that the provided message can be null if we're simply invoking a service with no input parameter.

Specified by:
asyncSend in class MessageBroker
Parameters:
partner -
portType -
operation -
message -

syncSend

public org.dom4j.Document syncSend(java.lang.String partner,
                                   java.lang.String portType,
                                   java.lang.String operation,
                                   org.dom4j.Document message)
Description copied from class: MessageBroker
Implement this method in your subclass to receive messages from the process engine and execute your own tasks accordingly. Keep in mind that the provided message can be null if we're simply invoking a service with no input parameter.

Specified by:
syncSend in class MessageBroker
Parameters:
partner -
portType -
operation -
message -
Returns:

getMessage

public static org.dom4j.Document getMessage(java.lang.String partner,
                                            java.lang.String portType,
                                            java.lang.String operation)


Copyright © 2003 SmartComps. All Rights Reserved.