mirror of https://github.com/apache/activemq.git
added helper method
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@517659 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
93d1087726
commit
0ae6a1d6aa
|
@ -58,4 +58,15 @@ public class BrokerFactory {
|
||||||
return broker;
|
return broker;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a broker from a URI configuration
|
||||||
|
* @param brokerURI
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
public static BrokerService createBroker(String brokerURI) throws Exception {
|
||||||
|
return createBroker(new URI(brokerURI));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue