Hey Rob,
Thanks, I'll try this suggestion.
I'm seeing a few issues with the new code (producer getting stuck,
consumer not getting any messages). I'm working on a test case to show
the problem. I'll create a JIRA issue as soon as I have something
concrete nailed down.
Cheers,
Albert
On Mon, 29 Jan 2007, Rob Davies wrote:
> Hi Albert,
>
> there's a few different ways to do this - my preferred way is create
> the broker separately in the same VM - e.g.
>
> BrokerFactoryBean factory = new BrokerFactoryBean(new
> ClassPathResource("org/apache/activemq/broker/policy/cursor.xml"));
> factory.afterPropertiesSet();
> BrokerService broker = factory.getBroker();
> broker.start();
>
> ....