mirror of https://github.com/apache/activemq.git
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:
parent
28316bb0bb
commit
3263205bf9
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue