}
}
private void createListener() throws Exception {
// create the activation spec
ActiveMQActivationSpec activationSpec = new ActiveMQActivationSpec();
activationSpec.setDestinationType("javax.jms.Queue");
activationSpec.setDestination(REQUEST_QUEUE_NAME);
// validate the activation spec
activationSpec.validate();
// set the resource adapter into the activation spec
activationSpec.setResourceAdapter(ra);
// create the message endpoint
MessageEndpointFactory endpointFactory = new JmsEndpointFactory();
// activate the endpoint