mirror of https://github.com/apache/activemq.git
allow main to easily pull xml config from a directory
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1144339 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d2bc650212
commit
fc36cd7d7b
|
@ -42,12 +42,13 @@ public final class Main {
|
||||||
*/
|
*/
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
try {
|
try {
|
||||||
// TODO - this seems to break interceptors for some reason
|
|
||||||
// BrokerService broker = BrokerFactory.createBroker(new
|
|
||||||
// URI(brokerURI));
|
|
||||||
BrokerService broker = new BrokerService();
|
BrokerService broker = new BrokerService();
|
||||||
broker.setPersistent(false);
|
broker.setPersistent(false);
|
||||||
|
|
||||||
|
// String brokerDir = "xbean:...;
|
||||||
|
// System.setProperty("activemq.base", brokerDir);
|
||||||
|
// BrokerService broker = BrokerFactory.createBroker(new URI(brokerDir + "/activemq.xml"));
|
||||||
|
|
||||||
// for running on Java 5 without mx4j
|
// for running on Java 5 without mx4j
|
||||||
ManagementContext managementContext = broker.getManagementContext();
|
ManagementContext managementContext = broker.getManagementContext();
|
||||||
managementContext.setFindTigerMbeanServer(true);
|
managementContext.setFindTigerMbeanServer(true);
|
||||||
|
|
Loading…
Reference in New Issue