Add more useful info if broker fails to start and don't start an embedded broker by default.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@389334 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2006-03-28 00:47:18 +00:00
parent 28316bb0bb
commit 3263205bf9
2 changed files with 4 additions and 1 deletions

View File

@ -79,7 +79,7 @@ public class ActiveMQResourceAdapter implements ResourceAdapter, Serializable {
broker = BrokerFactory.createBroker(new URI(brokerXmlConfig)); broker = BrokerFactory.createBroker(new URI(brokerXmlConfig));
broker.start(); broker.start();
} catch (Throwable e) { } catch (Throwable e) {
throw new ResourceAdapterInternalException("Failed to startup an embedded broker: "+e, e); throw new ResourceAdapterInternalException("Failed to startup an embedded broker: "+brokerXmlConfig+", due to: "+e, e);
} }
} }
} }

View File

@ -94,7 +94,10 @@
</description> </description>
<config-property-name>BrokerXmlConfig</config-property-name> <config-property-name>BrokerXmlConfig</config-property-name>
<config-property-type>java.lang.String</config-property-type> <config-property-type>java.lang.String</config-property-type>
<config-property-value></config-property-value>
<!--
<config-property-value>xbean:broker-config.xml</config-property-value> <config-property-value>xbean:broker-config.xml</config-property-value>
-->
</config-property> </config-property>
<outbound-resourceadapter> <outbound-resourceadapter>