-
1. Re: Consumer session lost
jbertram Feb 19, 2014 2:46 PM (in response to theone4ever)My first thought is that your HTTP call is blocking when the server is not reachable and that is preventing the MDB from consuming further messages.
In any event, I think that once you observe this problem you'd need to get a few thread dumps to investigate further.
-
2. Re: Consumer session lost
theone4ever Feb 19, 2014 3:39 PM (in response to jbertram)Hi Justin,
Thank you for your answer. The HTTP calls happens inside onMessage method, and from the log we can see that last time it returns from onMessage method, and this time it never enters into onMessage method. So i thought it has sth to do with Hornetq, somehow the consumer session is lost or sucked before triggers MDB or after triggers MDB.
Yes, of course the thread dump is useful, but this problem has on customer site twice and they are not able to provide us the dump, then we are still not able to reproduce it in design env.
BR/Keven
-
3. Re: Consumer session lost
jbertram Feb 19, 2014 5:37 PM (in response to theone4ever)You can check the consumerCount for the queue where the MDB is listening to ensure the MDB's session is still active.
-
4. Re: Consumer session lost
theone4ever Feb 19, 2014 5:48 PM (in response to jbertram)Hi Justin,
Ok, i will. What happens if consumerCount becomes 0? Does it mean the consumer is lost/dead? Do you know in what case consumer could die?
Thx.
BR/Keven
-
5. Re: Consumer session lost
jbertram Feb 19, 2014 5:54 PM (in response to theone4ever)What happens if consumerCount becomes 0? Does it mean the consumer is lost/dead?
If the consumerCount is 0 that means that the MDB's session died for some reason.
Do you know in what case consumer could die?
Such a scenario is not simple enough to provide a list of definitive cases where it might happen. Further investigation would be required, preferably with a reproducible test-case.
BTW, what version of HornetQ is being used?