[
https://issues.apache.org/jira/browse/OPENEJB-2127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15234225#comment-15234225
]
Jacek Obarymski commented on OPENEJB-2127:
------------------------------------------
Hi Romain,
Many thanks for the clarifications.
Yes, the custom log appender might be a solution, albeit obviously not ideal.
If we decided to fork ActiveMQ and patch it to add the synchronous start option
or investigate alternative JMS implementations, is there an easy way to replace
ActiveMQ in OpenEJB?
> Jms consumers registered after test is started
> ----------------------------------------------
>
> Key: OPENEJB-2127
> URL: https://issues.apache.org/jira/browse/OPENEJB-2127
> Project: OpenEJB
> Issue Type: Bug
> Components: tests
> Reporter: Jacek Obarymski
>
> Hi,
> W use OpenEJB for integration testing (with use of the ApplicationComposer
> JUnit runner).
> We've observed that sometimes JMS consumers are registered after the test is
> started.
> If the app under test, listens on a JMS topic, then the message is
> effectively lost (the app never receives it) and the test fails. This happens
> occasionally on slower machines.
> This is because the test is started before the app is fully deployed with all
> JMS consumers registered.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)