BrokerService broker = new BrokerService(); // configure the broker broker.addConnector("tcp://localhost:61616"); broker.setBrokerName("Broker1"); broker.setUseJmx(false); broker.start();
On Jul 27, 2010, at 2:51 PM, szeldon wrote: > > Hi, > > I'm working on an application that uses JMS among other transport > technologies. There are TestNG tests for much of the code. I want to create > unit tests for JMS invocations. For this, I need to start a JMS server > inside my unit tests. How to achieve this using ActiveMq? I was looking for > an answer for two days and I couldn't find anything appropriate. > > Best regards, > szeldon > -- > View this message in context: > http://old.nabble.com/How-to-run-ActiveMq-server-from-Java-code.-tp29280567p29280567.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > Johan Edstrom j...@opennms.org They that can give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety. Benjamin Franklin, Historical Review of Pennsylvania, 1759