-
1. Re: JMS: Long delay in the invocation of onMessage() method
mp911de Sep 21, 2011 1:22 AM (in response to phoncy)Hi Joseph,
you run 5.1.0 in Stand-Alone and do not use persistence for the Queues (Messages are stored in the Database)? Do you use just a Queue-Listener or do you use a Message-Driven bean? And are there only a few messages or is there a heavy load on the Queue?
Usually, when you use MDB's, there should be a delay of only a few msec's until onMessage is called.
Best regards,
Mark
-
2. Re: JMS: Long delay in the invocation of onMessage() method
phoncy Sep 21, 2011 1:29 AM (in response to mp911de)Hi Mark,
Thanks for the reply. I have not configured any database for persistence. So I assume that by default the hsqldb in jboss will be used for persistence. I'm using a Queue-Listener for receiving the messages. I have been testing the queue with 3-4 messages, so there is not much load on it.
Regards
Phoncy
-
3. Re: JMS: Long delay in the invocation of onMessage() method
mp911de Sep 21, 2011 2:38 AM (in response to phoncy)1 of 1 people found this helpfulHi Phoncy,
so it looks like you use the JBoss defaults. That's ok. Have you tried to put a (empty, only some logging) MessageDriven-Bean on your Queue just to check that the behavior is the same?
Long delays of that sort occour mostly on networking issues, when some hosts are tried to be reached but the connect's run into timeouts. To assure this, you could simply run JBoss on your local machine without having a network connection. Have you also tried to use a mini-client that handles only writing into the queue and on the other side having a listener? For that case you would not need any deployed apps on your JBoss, only that test-app.
Best regards,
Mark
-
4. Re: JMS: Long delay in the invocation of onMessage() method
phoncy Sep 23, 2011 12:15 AM (in response to mp911de)Hi Mark,
The delay was occuring due to network connection. It worked fast when I deployed it in a different server. Thanks for the guidance.
Regards
Phoncy.