containerConnector.setResourceAdapter(resourceAdapter);
containerConnector.setEndpointFactory(new SingletonEndpointFactory(this, getTransactionManager()));
containerConnector.start();
// Outbound connector
ActiveMQManagedConnectionFactory mcf = new ActiveMQManagedConnectionFactory();
mcf.setResourceAdapter(resourceAdapter);
connectionFactory = (ConnectionFactory) mcf.createConnectionFactory(getConnectionManager());
// Outbound broadcast
connection = ((ActiveMQResourceAdapter) resourceAdapter).makeConnection();
connection.start();
broadcastTopic = new ActiveMQTopic(broadcastDestinationName);