Re: StatisticsBrokerPlugin activation

2010-09-17 Thread Don Santillan
Thanks for your help Gary, it's working now. Gary Tully wrote: oops, sorry, my bad, so there is a broker factory for xbean but no transport factory. The correct syntax is to use the vm transport factory and tell it to use the xbean broker factory using the brokerConfig attribute: The brokerURI

Re: StatisticsBrokerPlugin activation

2010-09-16 Thread Gary Tully
oops, sorry, my bad, so there is a broker factory for xbean but no transport factory. The correct syntax is to use the vm transport factory and tell it to use the xbean broker factory using the brokerConfig attribute: The brokerURI should be of the form: vm://localhost?brokerConfig=xbean:... so yo

Re: StatisticsBrokerPlugin activation

2010-09-16 Thread Don Santillan
Hello Gary, Here's what I did: 1. added activemq.xml to classpath (classes/activemq.xml) 2. used xbean to initialize broker String brokerURI = "xbean:activemq.xml"; ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(brokerURI); connection = connectionFactory.createConn

Re: StatisticsBrokerPlugin activation

2010-09-16 Thread Gary Tully
Use the xbean: uri syntax to reference an xml configuration file in your brokerURI, that is the most flexible way to configure an embedded broker. http://activemq.apache.org/broker-configuration-uri.html On 16 September 2010 09:24, Don Santillan wrote: > Hello, > > I am using activemq as a dep

Re: StatisticsBrokerPlugin activation

2010-09-16 Thread Don Santillan
As a follow up, I used this unit test which made me think that StatisticsBrokerPlugin is not activated: [removed package and import lines] public class MonitoringTest extends TestCase { private String brokerURI = "vm://testBroker?broker.persistent=false"; private boolean transacted =