Package org.servicemix.components.util

Examples of org.servicemix.components.util.PojoLifecycleAdaptor


    public void testSendAndReceiveOfMessages() throws Exception {
        PojoSender sender = (PojoSender) getBean("sender");
        sender.sendMessages(messageCount);

        PojoLifecycleAdaptor adaptor = (PojoLifecycleAdaptor) getBean("receiver");
        PojoReceiver receiver = (PojoReceiver) adaptor.getPojo();
        assertMessagesReceived(receiver.getMessageList(), messageCount);
    }
View Full Code Here


        answer.setServiceManager(serviceManager);
        return answer;
    }

    protected Component createComponentAdaptor(MessageExchangeListener listener, ActivationSpec activationSpec) {
        ComponentLifeCycle lifecCycle = new PojoLifecycleAdaptor(listener, activationSpec.getService(), activationSpec
                .getEndpoint());
        return new ComponentAdaptorMEListener(lifecCycle, listener);
    }
View Full Code Here

TOP

Related Classes of org.servicemix.components.util.PojoLifecycleAdaptor

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.