I tried to get JeroMQ working for my little project. It is a UI and a backend server which handles the logic. But i can not get a JeroMQ Server/Client communication working.
I can connect to the server in the client and also send() returns true, but on the server side i never get to "Received ..."
Can someone tell me what is wrong?
I do not want to force others (if they want to implement their own UI) to use java. Unfortunately, REST is not really useful for that scenario. Therefore i prefer some kind of bytestream protocol which can be used in other languages too (zeromq is available for many languages, no brokerserver required etc.)
I found the solution. The client got closed too fast. When send() is called, it returns true meaning: "the message got queued", but that does not mean it got sent. Therefore, implementing autocloseable on the client and closing the ZContext made it.