com.ibm.broker.connector

Class OutputConnector



  • public abstract class OutputConnector
    extends Connector
    OutputConnector is the base class which must be extended to implement a connector which can send data to a system.

    It is used by IBM Integration Bus to send data to a system. It is created by the ConnectorFactory object which must also be implemented by a connector writer.

    The OutputConnector is constructed when a node requiring it;s function is constructed. The following methods are called by IBM Integration Bus to interact with the connector:

    • initialize is called a node using the connector is constructed.
    • Terminate is called when the node is stopped or destroyed.

    The OutputConnector is called to create an OutputInteraction when ever a flow instance needs to send data to the system. The created OutputInteractions will be pooled for reuse on several threads.

    • createOutputInteraction is called when IBM Integration Bus wants to send data to the end system with out receiving any response data. Override this method to create an OutputInteraction that can interact with the end system.

    • Constructor Detail

      • OutputConnector

        public OutputConnector(ConnectorFactory connectorFactory,
                               java.lang.String name,
                               java.util.Properties properties)
                        throws com.ibm.broker.plugin.MbException
        Throws:
        com.ibm.broker.plugin.MbException
    • Method Detail

      • createOutputInteraction

        public abstract OutputInteraction createOutputInteraction()
                                                           throws com.ibm.broker.plugin.MbException
        This is called by an integration node to create an OutputInteraction to send data to the system. Throwing an exception will cause the message flow node to throw an exception for the messaging currently being processed.
        Throws:
        com.ibm.broker.plugin.MbException
      • getInteractions

        public final OutputInteraction[] getInteractions()
                                                  throws com.ibm.broker.plugin.MbException
        Returns all OutputInteractions created by this connector that have not been terminated.
        Throws:
        com.ibm.broker.plugin.MbException
IBM Integration BusTM
JavaTM Connector API