Hi Dan,

Maybe we need to switch the JMS broker to use the VM transport instead of the TCP transport for the Unit test. We hit some JMS unit test issues in Apache Camel few month ago after upgrading the ActivemMQ version. And resolved them by switching the broker's transport.

Willem


Daniel Kulp wrote:
On Thu August 27 2009 10:06:33 pm Willem Jiang wrote:
Hi Benson,

I found after upgrading to ActiveMQ 5.1, the JMS broker need more time
to create a durable subscriber jms destination.
Added a sleep make the test passed again :)

Willem, Thanks for tracking that down. I couldn't figure out why it seemed to work OK for me 80% of the time, but randomly fail.

One thing it DID teach me is how to use the "-rf" flag to maven 2.2.1.
mvn -Pnochecks -rf rt/transports/jms

was a popular call.   :-)

Dan


Willem

Benson Margulies wrote:
Can't someone do something about:

Tests run: 9, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 28.232
sec <<< FAILURE!
testDurableSubscriber(org.apache.cxf.transport.jms.JMSDestinationTest)
 Time elapsed: 10.495 sec  <<< FAILURE!
java.lang.AssertionError: Can't receive the Destination message in 10
seconds


Reply via email to