Questions tagged [jeromq]

JeroMQ is a pure Java implementation of libzmq

JeroMQ is a pure Java implementation of libzmq (http://zeromq.org)

Features:

  • based on zeromq-3

  • tcp:// protocol and inproc:// is compatible with zeromq

  • not too bad performance compared to zeromq 2M messages (100B) per sec Performance

  • exactly same develop experience with zeromq

89 questions
0
votes
1 answer

Is it safe to use a ZMQ socket in an Actor running on a PinnedDispatcher?

As far as I can tell from documentation, ZeroMQ sockets are not supposed to be used (e.g. read from/written to) from different threads. That in turn prevents me from using a ZMQ socket in an Akka Actor running on the default dispatcher (no…
Patryk Koryzna
  • 475
  • 4
  • 13
0
votes
1 answer

How to create ZMQ context in an android application

I am trying to use ZMQ in an android application. Ideally, I should create the context once and term() it when the app is shutting down. But unlike the c++ applications. There is no main() function on android. Based on the google document about the…
r0n9
  • 2,505
  • 1
  • 29
  • 43
0
votes
1 answer

what is the use of ZMQueue class in JeroMQ

I checked source code of ZMQueue class from JeroMQ which implements Runnable interface looks like: private final Socket inSocket; private final Socket outSocket; public ZMQQueue( Context context, Socket inSocket, Socket outSocket ){ …
Abhishek Nayak
  • 3,732
  • 3
  • 33
  • 64
0
votes
1 answer

java.lang.ClassNotFoundException: org.zeromq.ZContext when trying to start windows service

I have a basic Maven java app that I created and it depends on JeroMQ which is a full Java implemenetation of ZeroMQ. Since I also need to wrap this java app as a windows service, I chose to use Apache Commons Daemon and specifically, followed this…
SpartaSixZero
  • 2,183
  • 5
  • 27
  • 46
0
votes
1 answer

Router/Dealer proxy not delivering messages

I'm working on distributed application. The networking is based on ZMQ (jeromq), here's my architecture: N Clients (Dealer socket) <---> (Router) Proxy (Dealer) <---> 1 (Dealer) Reciving Worker …
Stugal
  • 850
  • 1
  • 8
  • 24
0
votes
1 answer

ZeroMQ port-forwarding in Java

I have a program written in Java that should send messages out via ZeroMQ to be listened and responded to by another program I have running. The problem is that the listener is on another computer on the local network and I need to somehow perform…
Shiri
  • 1,972
  • 7
  • 24
  • 46
0
votes
0 answers

JeroMQ from time to time yields "IOException. too many files open"

I have a tomcat7 application that communicates with another application of mine using an IPC end point with JeroMQ in Java. There is a client server scheme and the client waits fro sometime for the response from the server and if it does not receive…
idipous
  • 2,868
  • 3
  • 30
  • 45
0
votes
1 answer

Android Application hanging on subscriber.recv()

I am writing an Android application that receives a continuous stream of data. I've set up the connection inside a runnable like so: Runnable runnable = new Runnable() { public void run() { ZMQ.Context context =…
AreM
  • 97
  • 10
0
votes
1 answer

reputable location to download jeromq binary?

I've been using jeromq for the last 6 months or so, and I'm getting a colleague up to speed. Is there any reputable location to download a JAR file? The version I have is jeromq-0.3.0-SNAPSHOT.jar but I can't remember for the life of me where it…
Jason S
  • 184,598
  • 164
  • 608
  • 970
0
votes
1 answer

Thread does not progress past ZMQ.context(1)

I am trying to implement a simple pub sub example where I have a server and am publishing periodic notifications about uptime to clients. This is being run as a part of a Windows service - bundled with InnoSetup and launch4j and Apache…
saraf
  • 530
  • 7
  • 22
0
votes
1 answer

PUSH with jeroMQ

I think it is something wrong with my zmq.jar so I tried with jeroMQ but I have the same problem. This is my method: private boolean submitEvent(String ioMessage) { log.info("SEND"); ZMQ.Context context = ZMQ.context(); ZMQ.Socket…
Biribu
  • 3,615
  • 13
  • 43
  • 79
0
votes
1 answer

why does jeromq use setReuseAddress(true)?

I'm new to zeromq and not that experienced with sockets. Are ZeroMQ sockets supposed to only allow one socket to bind() to a port? The jeromq implementation allows more than one; pyzmq does not. Who's correct? The jeromq ZMQ.Socket.bind() function…
Jason S
  • 184,598
  • 164
  • 608
  • 970
0
votes
1 answer

How to create a raw socket with ZeroMQ in Java?

I'm trying to port the ZeroMq Hello World Http server to Java from C. In this code snippet, the router socket is set to read raw data, but I can't figure out how to do this in Java... zsocket_set_router_raw (router, 1); Based on the guide, a socket…
raffian
  • 31,267
  • 26
  • 103
  • 174
-1
votes
1 answer

ZeroMQ failing to publish messages

I'm trying to get a basic implementation of a ZMQ publisher and subscriber working, but it's failing silently. I'm using JeroMQ 0.5.2 (the current version) and Java 8. Consider the following official test…
Erhannis
  • 4,256
  • 4
  • 34
  • 48
1 2 3 4 5
6