Configuring the Receiver
Configuring a Receiver consists of obtaining information, creating the Receiver, creating the Receiver TCP connection, and discarding the Receiver.
- Procedure
- Use the following function for the Receiver side:
LoadBalancer.Receiver.*
- Obtain information for a local channel needed for the Receiver:
int port = System.getSystemPropertyAsInt("receiver_localchnl_localdest_port", 34567);
- 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.
- Create the Receiver TCP connection in a startup rule function.
Object LoadBalancer.Receiver.createTcpReceiverFor(String adhocConfigName
- Discard the Receiver in the shutdown rule function.
LoadBalancer.Receiver.discardReceiver(Object loadBalancedReceiver;