Community room for ZeroMQ Java (e.g. jzmq, JeroMQ, jczmq, etc.)
People
Repo info
Activity
Incubator
@incube8r
Hi is there a quite on how to setup ZeroMQ to run on a Servlet container?
Kevin Sapper
@sappo
@incube8r I don't get your question? What is your use case?
KiranKumar BS
@kirankbs
Hello, I want to try jeromq. I would like to know when is there going to be a stable release?
Incubator
@incube8r
@sappo atm I have this Spring (Java) Websocket server that is used to accept video and audio chunks for live streaming, I am wondering if I can user ZeroMQ with Java and replace Websocket for live streaming
Kevin Sapper
@sappo
@incube8r technically I don't see why it shouldn't work. But I have never done it before ...
Adam Arold
@adam-arold
hi there
are there some up-to-date java examples somewhere?
the docs of jeromq say that the guide is outdated
Adam Arold
@adam-arold
for example i have no idea how to receive multiplart messages
from a subscriber
is this project abandoned?
Kevin Sapper
@sappo
@adam-arold the docs are wrong. The examples in the zguide are up to date.
Here's an example to receive a multipart message from a socket
// Receive message from ZMQSocket "input" socket object and iterate over frames
ZMsg receivedMessage = ZMsg.recvMsg(input);
for (ZFrame f : receivedMessage) {
// Do something with frame f (of type ZFrame)
}
Another example could be
ZFrame receivedFrame;
do {
receviedFrame = ZFrame.recvFrame(input);
// Do something with frame
} while (receivedFrame.hasMore());
And no the project is not abandoned
Adam Arold
@adam-arold
where ist his documented?
can you point me to it?
I read this chapter, but it doesn't talk about ZMsg
although i didn't read it till the end
thanks anyway, this is what I was looking for
do you have plans for fixing the API issues of JeroMQ?
Adam Arold
@adam-arold
I mean the scoping problem of Zmq.Socket
even if I have a subscriber i can still call send and all the other functions on it
i don't really know what's supposed to happen if I try to recv from a publisher
stuff like that
Kevin Sapper
@sappo
The socket API is intentionally designed like to to work with arbitrary socket types. The behavior of each socket is described in a rfc. E.g..
Feel invited to propose an Java idiomatic API wrapper around ZMQ.Socket. JeroMQ has no paid maintainers so any contributions are welcome 😊
Kevin Sapper
@sappo
Btw there's also the ZSocket class
Adam Arold
@adam-arold
do you have anyting planned?
Kevin Sapper
@sappo
I don't, but I'm open to suggestions
murat ayengin
@auengine
Hi Guys, I am evealuating jeromq for a low latency project. But i could not find a way to stop gc calls.Even the simplest client server applications require gc cycles after a while because of socket.recv calls. Is there any way to reuse same buffer for each recv call? I try to pass a static buffer to method but it does not seem working.
I want to read metadata from puspin state socket which using ipc. can any give some idea how to use zmq to with IPC...
ASHMEET KANDHARI
@ashmeet-kandhari
Hi Team,
Can someone help me to escape special characters ( like \n ) when passing messages through ZMQ As I can see that those characters are getting parsed when passed through ZMQ.
Thanks
Kevin Sapper
@sappo
@ashmeet-kandhari zeromq doesn't touch your data. Where does your error occur
ASHMEET KANDHARI
@ashmeet-kandhari
@sappo We are using pushpin and using zeromq transport (which pushpin has support out of the box) to publish messages to pushpin