Package org.apache.geronimo.messaging.interceptors

Examples of org.apache.geronimo.messaging.interceptors.HeaderOutInterceptor


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);
    }
View Full Code Here


        received = new ArrayList();
    }
   
    public void sendRawObject(Object anObject) {
        sender.sendSyncRequest(anObject,
            new HeaderOutInterceptor(
                MsgHeaderConstants.BODY_TYPE,
                MsgBody.Type.REQUEST,
                out), getID(), targetNodes);
    }
View Full Code Here

        if (null == aMsgOut) {
            out = null;
            return;
        }
        // Automatically adds the identifier of this EndPoint to produced Msgs.
        out = new HeaderOutInterceptor(MsgHeaderConstants.SRC_ENDPOINT, id,
            aMsgOut);
    }
View Full Code Here

     *
     * @return Output to be used to push Msgs to the RemoteNodeManager.
     */
    private MsgOutInterceptor newOutboundMsgProviderOut() {
        return
            new HeaderOutInterceptor(
                MsgHeaderConstants.SRC_NODE,
                nodeInfo,
                nodeManager.getMsgConsumerOut());
    }
View Full Code Here

        }
        connection.setMsgProducerOut(aMsgOut);
    }

    public MsgOutInterceptor getMsgConsumerOut() {
        return new HeaderOutInterceptor(
            MsgHeaderConstants.DEST_NODE,
            remoteNodeInfo,
            connection.getMsgConsumerOut());
    }
View Full Code Here

        received = new ArrayList();
    }
   
    public void sendRawObject(Object anObject) {
        sender.sendSyncRequest(anObject,
            new HeaderOutInterceptor(
                MsgHeaderConstants.BODY_TYPE,
                MsgBody.Type.REQUEST,
                out), getID(), targetNodes);
    }
View Full Code Here

        if (null == aMsgOut) {
            out = null;
            return;
        }
        // Automatically adds the identifier of this EndPoint to produced Msgs.
        out = new HeaderOutInterceptor(MsgHeaderConstants.SRC_ENDPOINT, id,
            aMsgOut);
    }
View Full Code Here

     *
     * @return Output to be used to push Msgs to the RemoteNodeManager.
     */
    private MsgOutInterceptor newOutboundMsgProviderOut() {
        return
            new HeaderOutInterceptor(
                MsgHeaderConstants.SRC_NODE,
                nodeInfo,
                nodeManager.getMsgConsumerOut());
    }
View Full Code Here

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);
    }
View Full Code Here

        }
        connection.setMsgProducerOut(aMsgOut);
    }

    public MsgOutInterceptor getMsgConsumerOut() {
        return new HeaderOutInterceptor(
            MsgHeaderConstants.DEST_NODE,
            remoteNodeInfo,
            connection.getMsgConsumerOut());
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.messaging.interceptors.HeaderOutInterceptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.