ActivationSpec senderActivationSpec = new ActivationSpec("sender", sender);
senderActivationSpec.setFailIfNoDestinationEndpoint(false);
container.activateComponent(senderActivationSpec);
Receiver receiver1 = new ReceiverComponent();
container.activateComponent(createReceiverAS("receiver1", receiver1));
Receiver receiver2 = new ReceiverComponent();
container.activateComponent(createReceiverAS("receiver2", receiver2));
sender.sendMessages(1, sync);