This class acts as a gateway for differed delivery of the messages. When a message is to be
delivered it is submitted to this class. If a connection is available to the target this
class will try to deliver the message immediately over that connection. If a connection is
not available it will queue the message and request a connection from the pool. When a new
connection is available a queued message will be sent through it.
Create a delivery agent with the target configuration and connection management.
targetConfiguration - configuration of the sender
targetConnections - connection management
public void submit(org.apache.axis2.context.MessageContext msgContext,
This method queues the message for delivery. If a connection is already existing for
the destination epr, the message will be delivered immediately. Otherwise message has
to wait until a connection is established. In this case this method will inform the
system about the need for a connection.
msgContext - the message context to be sent
host - host name of epr
port - port of the of epr
org.apache.axis2.AxisFault - if an error occurs
public void errorConnecting(String host,
public void connected(String host,
Notification for a connection availability. When this occurs a message in the
queue for delivery will be tried.
host - name of the remote host
port - remote port number
conn - connection made available to process the request