if (_startEmbedded) {
_embeddedJMS = new EmbeddedJMS();
_embeddedJMS.setConfigResourcePath(HORNETQ_CONF_FILE);
_embeddedJMS.setJmsConfigResourcePath(HORNETQ_JMS_CONF_FILE);
try {
_embeddedJMS.setRegistry(new JndiBindingRegistry());
_embeddedJMS.start();
} catch (final Exception e) {
throw new RuntimeException(e);
}
}