Package org.mule.transport

Examples of org.mule.transport.DefaultReplyToHandler


        InboundEndpoint vmEndpoint = vmEndpointBuilder.buildInboundEndpoint();
        Connector vmConnector = vmEndpoint.getConnector();
        InboundEndpoint ajaxEndpoint = ajaxEndpointBuilder.buildInboundEndpoint();
        Connector ajaxConnector = ajaxEndpoint.getConnector();

        DefaultReplyToHandler jmsHandler = (DefaultReplyToHandler) ((AbstractConnector)jmsConnector).getReplyToHandler(jmsEndpoint);
        DefaultReplyToHandler vmHandler = (DefaultReplyToHandler) ((AbstractConnector)vmConnector).getReplyToHandler(vmEndpoint);
        DefaultReplyToHandler ajaxHandler = (DefaultReplyToHandler) ((AbstractConnector)ajaxConnector).getReplyToHandler(ajaxEndpoint);

        DefaultReplyToHandler jmsHandler2 = serialize(jmsHandler);
        DefaultReplyToHandler vmHandler2 = serialize(vmHandler);
        DefaultReplyToHandler ajaxHandler2 = serialize(ajaxHandler);

        assertEquals(jmsHandler.getConnector(), jmsHandler2.getConnector());
        assertEquals(vmHandler.getConnector(), vmHandler2.getConnector());
        assertEquals(ajaxHandler.getConnector(), ajaxHandler2.getConnector());
    }
View Full Code Here


    {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        ObjectOutputStream oos = new ObjectOutputStream(baos);
        oos.writeObject(handler);
        oos.flush();
        DefaultReplyToHandler serialized = (DefaultReplyToHandler) new ObjectInputStream(new ByteArrayInputStream(baos.toByteArray())).readObject();
        serialized.initAfterDeserialisation(muleContext);
        return serialized;
    }
View Full Code Here

TOP

Related Classes of org.mule.transport.DefaultReplyToHandler

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.