Questions tagged [jzmq]

jzmq is the java bindings for the ZeroMQ transport layer

80 questions
1
vote
0 answers

ZeroMQ REQ-ROUTER messages not being received

I have 10 clients receiving queries from a server, processing the queries and send messages to a server roughly at the same time The receive side is as such: I first create the socket: val commandSocket =…
Hossein
  • 1,152
  • 1
  • 16
  • 32
1
vote
1 answer

ZeroMQ (ZMQ) feeding VivaGraph graph on client side

I'm building a HTML page which renders a graph created using VivaGraph ( https://github.com/anvaka/VivaGraphJS ) . This graph should be fed by data coming from a ZMQ (ZeroMQ) datastream, where my webpage is connected as "Subscriber" to a…
Stefano
  • 389
  • 2
  • 15
1
vote
0 answers

Getting error java.lang.UnsatisfiedLinkError: no jzmq in java.library.path in IntelliJ ide with windows 10

I have a java project which have zeromq implementation. i have installed zeromq windows version in my windows 10 OS. When running the application i am getting above error. I have downloaded zeromq (windows) installer from…
Kamran Shahid
  • 3,954
  • 5
  • 48
  • 93
1
vote
1 answer

ZMQ (jzmq) - what is the purpose of the ZThread?

I am using jzmq package for my project to communicate over network. I am using DEALER ROUTER pair. I have read that the socket with DEALER and ROUTER type is not thread safe. So I can not send or receive from the same socket on 2 different…
1
vote
1 answer

ZMQ socket - disconnect when all request are served

I am trying to implement ZMQ REQ/REP model in Java I have a Server-role, running on post 5564, which acts as Replier ZMQ.Socket repSock = context.socket(ZMQ.REP); I have a Client-role, running on post 5563 ZMQ.Socket syncclient =…
MyTwoCents
  • 7,284
  • 3
  • 24
  • 52
1
vote
1 answer

Installing and running ZeroMQ

I am trying to install ZeroMQ on my PC but I can not make my program run without crashing. The installation: 1) install Visual Studio 2017. 2) clone from git jzmq and libzmq 3) install ZMQ version 4.0.4 for windows. 4) run the script build in:…
Hagar Tal
  • 143
  • 2
  • 13
1
vote
2 answers

Task progress from a ZeroMQ worker

Fairly new to ZeroMQ. I have a simple REQ/REP queue like below. I am using PHP but that doesn't matter as any language binding would be fine for me. This is client to request a task $ctx = new ZMQContext(); $req = new ZMQSocket($ctx,…
Waku-2
  • 1,136
  • 2
  • 13
  • 26
1
vote
1 answer

Python ZMQ transmitting message garbled

My server in python: import time import zmq context = zmq.Context() socket = context.socket( zmq.REP ) socket.bind( "tcp://*:5555" ) while True: # Wait for next request from client message = socket.recv() print( "Received request:…
dome some
  • 479
  • 7
  • 22
1
vote
1 answer

The import org.zeromq cannot be resolved, what can I do?

The import org.zeromq cannot be resolved, what can I do? Im trying to Subscribe ZMQ for my web app. First time working with ZMQ and im getting a little frusty. Can anybody help? It has been a while since I used Java the last time. import…
Justin Lange
  • 897
  • 10
  • 25
1
vote
1 answer

ZMQ Dealer-Router connection monitoring

I have several dealers connecting to one Router socket. The dealers send data asynchronously and the Router gathers/processes the data. What I need to do is find a way to know when a dealer has stopped sending data/disconnected from the router…
Pandrei
  • 4,843
  • 3
  • 27
  • 44
1
vote
1 answer

ZeroMQ PGM Multicast doesn't support reply handling from application layer?

I have done a sample ZeroMQ PGM multicast application and it is working fine. But reply handling is not working. Is this correct approach or not? If yes - how to do any reply from a Receiver to the Sender? Sender: std::string msg =…
my2117
  • 143
  • 1
  • 6
1
vote
2 answers

Exception in thread "main" java.lang.UnsatisfiedLinkError: no jzmq in java.library.path in Eclipse

Import org.zeromq.ZMQ; -For the above import statement, I am using "org folder" in jzmq master folder which consists of ZMQ.java file. -So, there is no problem with compilation. When I start running the program, It shows below exception Exception…
1
vote
1 answer

ZeroMQ: are PUB/SUB topic subscriptions cheap?

Problem: I have a number of file uploads coming via HTTP in parallel ( uploads receiver ). I'm storing them temporarily on a local disk. Another process ( uploads submitter ) gets notified about new uploads and does specific processing ( parsing,…
Vovan Kuznetsov
  • 461
  • 1
  • 4
  • 10
1
vote
1 answer

cannot find jni.h in /usr/lib/

I'm using Ubuntu and trying to install storm but got this checking for jni.h in /usr/lib/jdk1.6.0_36/include... configure: error: cannot find jni.h in /usr/lib/jdk1.6.0_36/include. when used this command ./configure in JZMQ installation java…
user5520049
1
vote
2 answers

How to handle errors with JZMQ?

The documentation for Socket#recv() reads: Returns: [...] null on error. How can I tell what the error was? I want to handle EAGAIN specifically.
user1804599