[zeromq-dev] How to integrate zeromq into existing event loop in java.

artemv zmq artemv.zmq at gmail.com
Mon Jul 14 10:50:19 CEST 2014

Hi experts.

Question in subj. How to do that? Never see example of how to integrate
ZMQ.Socket into java' java.nio.channels.Selector. Or opposite, how to make
to work java.nio.channels.SelectableChannel  inside ZMQ.Poller?

In particular, I want to implement a situation where java channel and ZMQ
socket would be handled in the same thread via same poller. I have
SelectableChannel on server (i.e. this's channel that was accepted on
server from client), and over this channel client pings a server __every
This java channel is registered on ZMQ' poller, so I do .poll() and then
check poller.pollin(). My problem is that I have pollin() triggered only
once, i.e. only once I read what client sends, despite the fact that client
is sending every second. This is very weird.

Any links, docs, suggestions or explanations would be much much

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140714/c604aa06/attachment.htm>

More information about the zeromq-dev mailing list