Hi Dan,
I just realized switch the JMS broker's transport makes it possible to
run the JUnit test with the broker in the same JVM.
It may not work for our JMSDestinationTest.
I can't reproduce the JMSDestinationTest error on my box.
Can you try to increase the sleep time after the jms destination started
to see if it works?
Willem
Daniel Kulp wrote:
On Fri August 28 2009 8:34:46 pm Willem Jiang wrote:
Hi Dan,
Maybe we need to switch the JMS broker to use the VM transport instead
of the TCP transport for the Unit test.
Sure. I have no idea how to do it. :-)
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.
Well, I know 5.2 doesn't work for us at all which is why I went with 5.1.
The transaction issue is fixed in the latest 5.3 snapshots, but 5.2 really
doesn't work.
Dan
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