activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From drjava <nab...@zippersnapper.com>
Subject Getting BindException on client side after restart of broker
Date Fri, 13 Jun 2008 21:30:01 GMT

I am (still) in the process of testing a JmsMessenger class called
JmsLogMessenger. One of my test cases scenario is as follows:

* start the JMS broker (Active Mq 5.1.0, embedded)
* start a thread that sends messages at a given interval.
* after a while (n seconds) shut the broker down
* after another m seconds re-start the broker (during shutdown the messages
are saved to a temporary store)
* wait for some more n seconds (during which the sending thread keeps on
sending and the JmsMessenger recovers the messages from the temp store. 
* stop the sending thread.
* wait a little bit - give the receiver a chance to intercept all the
messages
* compare number of messages sent to number of messages received.


If I send messages at a low rate - everything is fine and the test passes.
When I bump up the rate to 1 message per millisecond (but in reality it is
slower) - about 1000 messages never arrive at the receiving end. 
And I get BindException on the client (consumer) side.

Where did I go wrong?

I attach a text file with the exception stack trace, the spring xml config
file and the junit test file.

Thanks.

Environment Details:

IDE - eclipse 3.3.2
Spring - 2.5
test runner - Junit 4.4
ActiveMQ version - 5.1.0
VM - Java 1.6_0_06
OS - Windows XP 64bits
hardware - Dell, Intel core 2 quad cpu, 2.66GH, 3.93 GB of RAM 


http://www.nabble.com/file/p17832323/spring-config.xml spring-config.xml 
http://www.nabble.com/file/p17832323/JmsLogMessengerTest.java
JmsLogMessengerTest.java 
http://www.nabble.com/file/p17832323/BindException.rtf BindException.rtf 
-- 
View this message in context: http://www.nabble.com/Getting-BindException-on-client-side-after-restart-of-broker-tp17832323p17832323.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message