If you are taking this route, you can try defining your broker
configuration in a separate xml file and do something like

BrokerService broker = BrokerFactory.createBroker(new
URI("xbean:activemq.xml")); 
broker.start();

it will be easier to configure it that way.

Cheers

-- 
Dejan Bosanac


http://www.ttmsolutions.com - get a free ActiveMQ user guide

ActiveMQ in Action - http://www.manning.com/snyder/
Scripting in Java - http://www.scriptinginjava.net



CB4 wrote:
> I was able to configure my broker programatically within my startup mbean
> using the following without jmx conflicts:
>
>    BrokerService broker =
> org.apache.activemq.broker.BrokerFactory.createBroker("broker:(vm://localhost)");
>    broker.setUseJmx(true);
>    broker.setPersistent(false);
>    broker.start();
>
> This is less than an ideal solution and leads me to believe there is a bug
> in the spring <amq:broker> xml schema configuration handler. 
>    
>   


Reply via email to