Re: activemq consumer does not return data even when queue not empty

2016-03-01 Thread vishva
Thanks artnaseef, for pointing me in the right direction.The issue was mainly because it was running under JTA transaction, and hence the consumers were not releasing the connection. So after around 50-100 polls, all the connections were exhausted. I was able to fix it by making TransactionSuppor

Re: activemq consumer does not return data even when queue not empty

2016-03-01 Thread artnaseef
Thanks for posting your findings. That's an interesting fix given the fact that the JMS spec states that a JMS connection created within a JTA transaction participates in that transaction automatically (although I'm sure it's fine for a provider to allow a means to pull it out of the transaction).

Re: activemq consumer does not return data even when queue not empty

2016-02-27 Thread Tim Bain
Are you hitting your catch block? Add logging before you re-throw to find out. Also, a thread dump could help determine if you're stuck in a blocking call or bombing out early, though it won't tell you why you bombed out (that's what the logging in the catch block is for). What are the queue sta

Re: activemq consumer does not return data even when queue not empty

2016-02-26 Thread artnaseef
So there are a few concerns with the code. First off, to your question of consumption stopping - based on the fact that the code uses ActiveMQResourceAdapter, I assume this is running in the context of a JTA Transaction. If so, all operations are transacted, and the client acknowledge mode is ign