Package org.apache.servicemix.components.jms

Examples of org.apache.servicemix.components.jms.JmsServiceComponent


        // JMS Component
        JmsComponent component = new JmsComponent();
        container.activateComponent(component, "JMSComponent");

        // Add a jms receiver
        JmsServiceComponent jmsReceiver = new JmsServiceComponent();
        jmsTemplate.setDefaultDestinationName("queue/A");
        jmsReceiver.setTemplate(jmsTemplate);
        jmsReceiver.afterPropertiesSet();
        ActivationSpec asJmsReceiver = new ActivationSpec("jmsReceiver", jmsReceiver);
        asJmsReceiver.setDestinationService(new QName("test", "receiver"));
        container.activateComponent(asJmsReceiver);

        // Add an echo component
View Full Code Here


       // JMS Component
        JmsComponent component = new JmsComponent();
        container.activateComponent(component, "JMSComponent");
       
        // Add a jms receiver
        JmsServiceComponent jmsReceiver = new JmsServiceComponent();
        JmsTemplate template = new JmsTemplate(new PooledConnectionFactory(connectionFactory));
        template.setDefaultDestinationName("queue/A");
        jmsReceiver.setTemplate(template);
        jmsReceiver.afterPropertiesSet();
        ActivationSpec asJmsReceiver = new ActivationSpec("jmsReceiver", jmsReceiver);
        asJmsReceiver.setDestinationService(new QName("test", "receiver"));
        container.activateComponent(asJmsReceiver);
       
        // Add an echo component
View Full Code Here

TOP

Related Classes of org.apache.servicemix.components.jms.JmsServiceComponent

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.