[zeromq-dev] fun with Java API

Yu Dongmin miniway at gmail.com
Fri Nov 16 02:36:49 CET 2012


When I share the context between threads before creating a socket, I set the actual context manually

        ZContext ctx = new ZContext ();
        ctx.setContext (ZMQ.context (1));


Thanks
Min

On Nov 16, 2012, at 10:11 AM, Pieter Hintjens <ph at imatix.com> wrote:

> On Fri, Nov 16, 2012 at 7:13 AM, Peter Friend <pfriend at gehrytech.com> wrote:
> 
>> I am not sure why the context is not created at this point, but it can cause
>> problems
> 
> It's a workaround for 0MQ/2.x's API, where you have to specify the
> iothreads when you create the context.
> 
> For 0MQ/3.2 and forward this workaround isn't needed any longer. Other
> bindings (like CZMQ) have the same workaround and IMO it'll be needed
> until 2.x is fully deprecated.
> 
> -Pieter
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev




More information about the zeromq-dev mailing list