Package org.servicemix.examples

Examples of org.servicemix.examples.Sender


    public static void setResult(List result) {
        ScriptTest.result = result;
    }

    public void testSendingAndReceivingMessagesUsingSpring() throws Exception {
        Sender sender = (Sender) getBean("sender");
        ScriptComponent component = (ScriptComponent) getBean("receiver");
       
        sender.sendMessages(1);

        List result = getResult();
        assertNotNull("Have not received any results from groovy!", result);
        System.out.println("Found results: " + result);
    }
View Full Code Here


* @version $Revision: 613 $
*/
public class GroovyTransformTest extends org.servicemix.SpringTestSupport {

    public void testSendingAndReceivingMessagesUsingSpring() throws Exception {
        Sender sender = getSender();

        sender.sendMessages(messageCount);

        MessageList messageList = getReceivedMessageList();
        messageList.assertMessagesReceived(messageCount);

        // lets now look into the received messages
View Full Code Here

            // a 5 seconds pause when Management stuff is initialized
      //container.setCreateMBeanServer(true);
      container.init();
      container.start();
     
      Sender sender = new SenderComponent();
            ActivationSpec senderActivationSpec = new ActivationSpec("sender", sender);
            senderActivationSpec.setFailIfNoDestinationEndpoint(false);
            container.activateComponent(senderActivationSpec);
     
      ReceiverListener receiver1 = new ReceiverListener();
      container.activateComponent(createReceiverAS("receiver1", receiver1));
 
      ReceiverListener receiver2 = new ReceiverListener();
      container.activateComponent(createReceiverAS("receiver2", receiver2));
     
      sender.sendMessages(1);
     
      Thread.sleep(100);
     
            assertFalse(receiver1.isPropertySetOnExchange());
            assertFalse(receiver2.isPropertySetOnExchange());
View Full Code Here

TOP

Related Classes of org.servicemix.examples.Sender

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.