RE: Embedded Broker instantiated 2 times when subclassing test.

2013-06-05 Thread guillaume.surrel
Thanks! This is now working great. Guillaume -Message d'origine- De : Christian Posta [mailto:christian.po...@gmail.com] Envoyé : mardi 4 juin 2013 18:54 À : users@activemq.apache.org Objet : Re: Embedded Broker instantiated 2 times when subclassing test. yep, this is expected

Re: Embedded Broker instantiated 2 times when subclassing test.

2013-06-04 Thread Christian Posta
yep, this is expected when using the spring test functionality. your subclass will inherit the config from parent class which also loads a broker. take a look at link below to turn off inheritance: @ContextConfiguration(inheritLocations=false) http://static.springsource.org/spring/docs/3.0.x/jav

Re: Embedded Broker instantiated 2 times when subclassing test.

2013-06-04 Thread Jean-Baptiste Onofré
Hi Guillaume, I guess that you didn't overwrite the JMX parameters. Maybe you have the MBean server created two times (but only one broker). Take a look on: http://activemq.apache.org/jmx.html Regards JB On 06/04/2013 06:29 PM, guillaume.sur...@orange.com wrote: Hi, I’m stuck with a proble