// 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