Configuring the Receiver

Configuring a Receiver consists of obtaining information, creating the Receiver, creating the Receiver TCP connection, and discarding the Receiver.

Procedure

  1. Use the following function for the Receiver side:
    LoadBalancer.Receiver.*
  2. Obtain information for a local channel needed for the Receiver:
    int port = System.getSystemPropertyAsInt("receiver_localchnl_localdest_port", 34567);
  3. Create a Receiver.
    The receiver object, which receives messages from a router, is created and returned. Messages will be received from the router on the local channel and destination specified.
  4. Create the Receiver TCP connection in a startup rule function.
    Object LoadBalancer.Receiver.createTcpReceiverFor(String adhocConfigName
  5. Discard the Receiver in the shutdown rule function.
    LoadBalancer.Receiver.discardReceiver(Object loadBalancedReceiver;