// Add a jms receiver
JmsReceiverComponent jmsReceiver = new JmsReceiverComponent();
JmsTemplate template = new JmsTemplate(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 a receiver component