On Fri, Feb 25, 2011 at 5:50 PM, Michael Kogan
<[email protected]> wrote:

> I thought it was not a good idea to access sockets from different threads. In 
> my java code, I am attempting to use thread local to have one publisher per 
> thread instead of sharing one for all threads in the servlet containers 
> thread pool. Is this not a good idea?

You cannot access a socket from multiple threads. You _can_ create a
socket in one thread, then pass it to another thread which uses it.

-Pieter
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to