activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject Embedded Broker instantiated 2 times when subclassing test.
Date Tue, 04 Jun 2013 16:29:21 GMT

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: 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 ?



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.

View raw message