On Wed, 2009-01-21 at 10:26 -0800, sbs1982 wrote:
> If one thread in my app is trying to create a temporary topic and I already
> have a few consumers(listening on other temp topics & processesing incoming
> messages on their respective call back methods i.e listeners) open. Now
> trying to call the close method of one of these consumers causes my app to
> go into deadlock. 

Can you create a test case that might reproduce the problem?  If you run
in the debugger can you pinpoint where the deadlock is occurring?  

> is there some know issue of close method of consumers locking? 
> 
> I looked at the code in the MessageConsumer..the first statement is
> lock(this). 
> Some articles are out there saying that locking on this is unsafe? 

Can you provide references, I'd like to read up on this (no pun
intended).

You may want to create a Jira issue to cover this problem.

Regards
Tim.


-- 
Tim Bish
http://fusesource.com
http://timbish.blogspot.com/



Reply via email to