Re: How to run ActiveMq server from Java code.

2010-08-01 Thread Dejan Bosanac
You don't need to add queue explicitly. It will be created when the first producer/consumer try to use it. Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On

Re: How to run ActiveMq server from Java code.

2010-07-30 Thread szeldon
Thanks, this works great. Nonetheless I have a problem. Problem with connecting to a queue that was created from the code. How to achieve this? My code looks like this and it throws Exception in thread "main" javax.naming.NameNotFoundException: queueName in line with context lookup of queue:

Re: How to run ActiveMq server from Java code.

2010-07-27 Thread Johan Edstrom
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