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:
Gary Tully 2011-07-08 14:35:28 +00:00
parent d2bc650212
commit fc36cd7d7b
1 changed files with 4 additions and 3 deletions

View File

@ -42,12 +42,13 @@ public final class Main {
*/
public static void main(String[] args) {
try {
// TODO - this seems to break interceptors for some reason
// BrokerService broker = BrokerFactory.createBroker(new
// URI(brokerURI));
BrokerService broker = new BrokerService();
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
ManagementContext managementContext = broker.getManagementContext();
managementContext.setFindTigerMbeanServer(true);