public class EndPointUtil
{
public static void interConnect(EndPoint anEP1, EndPoint anEP2) {
MsgOutInterceptor out =
new HeaderOutInterceptor(
MsgHeaderConstants.SRC_NODE, "",
new HeaderOutInterceptor(
MsgHeaderConstants.SRC_ENDPOINT, "",
new HeaderOutInterceptor(
MsgHeaderConstants.TOPOLOGY_VERSION,
new Integer(1),
anEP1.getMsgConsumerOut())));
anEP2.setMsgProducerOut(out);
out =
new HeaderOutInterceptor(
MsgHeaderConstants.SRC_NODE, "",
new HeaderOutInterceptor(
MsgHeaderConstants.SRC_ENDPOINT, "",
new HeaderOutInterceptor(
MsgHeaderConstants.TOPOLOGY_VERSION,
new Integer(1),
anEP2.getMsgConsumerOut())));
anEP1.setMsgProducerOut(out);
}