private void createBroker() throws ResourceAdapterInternalException {
try {
BrokerContainerFactory brokerContainerFactory = XmlConfigHelper.createBrokerContainerFactory(getBrokerXmlConfig());
IdGenerator idgen = new IdGenerator();
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);