[rabbitmq-discuss] Java client: channel synchronization deadlock?
Tony Garnock-Jones
tonyg at lshift.net
Mon Dec 15 12:21:57 GMT 2008
Hi Jonathan,
Jonathan McGee wrote:
> [...] the following code causes a deadlock:
> synchronized(channel) { channel.queueDeclare("foo"); }
> It appears this is because the RabbitMQ client does its own locking
> on "this" internally.
*facepalm*
Excellent observation. Thanks for pointing this out. We're fixing it now
-- the fix will (modulo unforeseen problems) be in the 1.5.0 release.
> (As a side note, the guide also indicates that you must obtain a
> ticket to access a Channel, but this doesn't seem to be required
> anymore.)
That'll be changed with this upcoming release.
Regards,
Tony
--
[][][] Tony Garnock-Jones | Mob: +44 (0)7905 974 211
[][] LShift Ltd | Tel: +44 (0)20 7729 7060
[] [] http://www.lshift.net/ | Email: tonyg at lshift.net
More information about the rabbitmq-discuss
mailing list