activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Embedded Broker instantiated 2 times when subclassing test.
Date Tue, 04 Jun 2013 16:38:27 GMT
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.surrel@orange.com wrote:
> Hi,
>
> I’m stuck with a problem using spring configuration of an ActiveMQ
> broker. The broker seems to be created 2 times, causing a JMX exception
> the second time when the beans are registered:
> javax.management.InstanceAlreadyExistsException:
> org.apache.activemq:type=Broker,brokerName=localhost
>
> Here is my setup:
>
> I’ve got a test class which uses an embedded broker (created using
> spring configuration). Another test class extends this one to run these
> tests with another spring configuration which includes some changes.
>
> I’ve reproduced the problem on a minimal project attached. I’m running
> on jdk1.6.0_45. Is this a known bug or a misconfiguration ?
>
> Thanks,
>
> Guillaume
>
> _________________________________________________________________________________________________________________________
>
> Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou
privilegiees et ne doivent donc
> pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message
par erreur, veuillez le signaler
> a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques
etant susceptibles d'alteration,
> France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme
ou falsifie. Merci.
>
> This message and its attachments may contain confidential or privileged information that
may be protected by law;
> they should not be distributed, used or copied without authorisation.
> If you have received this email in error, please notify the sender and delete this message
and its attachments.
> As emails may be altered, France Telecom - Orange is not liable for messages that have
been modified, changed or falsified.
> Thank you.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message