jzmq is the java bindings for the ZeroMQ transport layer
Questions tagged [jzmq]
80 questions
3
votes
3 answers
ZMQ - libzmq.so.3: cannot open shared object file: No such file or directory
I'm trying to embed zeroMQ in my app, I followed this guideline to install ZMQ, so till here everything works fine.
I have this line of code in my app:
ZMQ.Context m_context = ZMQ.context(1);
but above line of code raise below exception:
Exception…

tokhi
- 21,044
- 23
- 95
- 105
2
votes
1 answer
how does zmq allow clients to subscribe/listen before a server is up
The question is in the title but to elaborate a bit. If I'm writing an NIO application in Java using the Sun/Oracle NIO APIs or a framework like Netty, is it possible to have a client "connect" as a subscriber even while there is no server bound to…

zcourts
- 4,863
- 6
- 49
- 74
2
votes
1 answer
Subscribe to custom events in Hyperledger Sawtooth browser client app
Could anybody link me to any example of a client javascript example for subscribing to custom events of Hyperledger Sawtooth, raised from a custom transaction processor? I could not find any.

klautern
- 129
- 3
- 7
- 26
2
votes
1 answer
How to create a Poller in jzmq Java bindings for ZeroMQ?
I am going through the examples on the ZeroMQ website and all the Java examples don't work for the jzmq library. I think they work with the other Java implementation but the project I am working on is using jzmq. Are there examples anywhere for…

devo
- 1,290
- 1
- 15
- 28
2
votes
1 answer
JZMQ failing to build debian package on Ubuntu
At the moment, I'm having serious problems getting JZMQ to compile on Ubuntu (10.04.2 LTS Server, x86). I've installed 0MQ from source, but the debian package build for JZMQ is failing with:
dpkg-shlibdeps: error: no dependency information found for…

Nathan Kleyn
- 5,103
- 3
- 32
- 49
2
votes
2 answers
No jzmq in java.library.path
I work on a trading engine where at the time of run, I get the log from the engine.log like the following,
2018_01_02_03_28_20_684 INFO ZMQCommunicatorService REMOTE_EXECUTOR_MARKET_ADMIN-ALL_MARKETS-0-5 - no jzmq in java.library.path, sleeping 2…

Arefe
- 11,321
- 18
- 114
- 168
2
votes
1 answer
ZMQ C++ Send and Receive from specific worker
I am using ( Client )REQ->ROUTER(Router)<-ROUTER(Worker) Socket-scheme.
I could able to send the Client request to the particular worker, but unable to send the response back to Client and as it's a REQ socket and hence the client hangs waiting for…

Kumar Roshan Mehta
- 3,078
- 2
- 27
- 50
2
votes
1 answer
Send and Receive data through same Socket in JZMQ
I am developing a JAVA multicast application using JZMQ (PGM protocol).
Is it possible to send and receive data through the same socket?
If ZMQ.PUB is used, only send() works and recv() is not working.
If ZMQ.SUB is used, send() doesn't work.
Is…

Nisanth
- 43
- 4
2
votes
1 answer
Right way to use ZMQ in multi threaded environment?
My program uses ZMQ for communication. Namely, a server (C++, linux) creates an XPUB socket and then in one thread reads it, and in another one publishes data (writes).
The client (java, jzmq, linux) create a SUB socket, and subscribes using…
user2900180
2
votes
1 answer
Exception in thread "main" java.lang.UnsatisfiedLinkError: ... \jzmq.dll: Can't find dependent libraries
I have a java application using ZMQ. I've been able to run it on my Win7 PC where I placed the jzmq.dll in the same folder where the jar executable is, then I run it by the command "java -jar myapp.jar".
My next step is to move it to run on a…

user3062233
- 179
- 1
- 2
- 7
2
votes
1 answer
java.lang.UnsatisfiedLinkError: no jzmq in java.library.path
I have a java application using an external dll (zmq). When I run it in debug mode in Eclipse it's all fine. However, when I export the application as Runnable JAR file then trying to run it, I'm getting that error referencing the dll.
Following my…

user3062233
- 179
- 1
- 2
- 7
2
votes
1 answer
ZeroMQ basic Request-Reply implementation
I'm new to ZMQ trying to figure out how to integrate it in my project. I need to implement the most basic request-reply model where the server is Java and the client is C++. I'm working on Windows using VS2013 and Eclipse (STS).
I find the material…

user3062233
- 179
- 1
- 2
- 7
2
votes
2 answers
Is there a memory leak in JZMQ 2.x.x on top of ZeroMQ 3.2.3 while publishing on multicast?
I wrote a simple test in java (JDK 7) for a ZeroMQ PUB socket publishing data over a MULTICAST channel on Windows 7 using OpenPGM 5.2.122. I tried JZMQ versions 2.2.0, 2.1.3 and 2.1.0 on top of ZeroMQ 3.2.3. The test file is as below.
import…

Chinmay Nerurkar
- 495
- 6
- 22
2
votes
1 answer
ZeroMQ Java example hangs on Ubuntu 12
I'm trying to program with ZeroMQ on Ubuntu using the Java examples. I've successfully built ZeroMq core and Java bindings, but trying to run simple example, it just hangs indefinitely.
Here's what I've done so far, btw, I'm using JDK/JRE 1.7,…

raffian
- 31,267
- 26
- 103
- 174
2
votes
1 answer
jzmq seems to ignore HWM on XREP
I expected the threads in this program work in lock step. However, the sender sends ~60000 messages before waiting for receiver to catch up. What have I misunderstood about HWM?
If I don't start the receiver thread, then the sender blocks when…

Chandra Sekar
- 10,683
- 3
- 39
- 54