container = brokerContainerFactory.createBrokerContainer(idgen.generateId(), BrokerContext.getInstance());
container.start();
connectionFactory = new ActiveMQRAConnectionFactory(container, getServerUrl());
} catch (JMSException e) {
log.error(e.toString(), e);
throw new ResourceAdapterInternalException("Failed to startup an embedded broker", e);
}
}