Wednesday, August 11, 2010

Adventures with ØMQ and Java : Installation

ZeroMQ - "fastest. Messaging. Ever." - well we'll see about that :)

Anyway, first thing first...we need to install ZeroMQ and ZeroMQ Java bindings in my case.

I am using Ubuntu 10.4:


First. install  ZeroMQ ( follow the instruction from the webiste http://www.zeromq.org/area:download#toc1)

Next, install Java Bindings (read this http://www.zeromq.org/bindings:java) - 
Important, make sure your JAVA_HOME is set to JDK location before you run autogen.sh script run ldconfig -v  at the end if you get:
"...cannot open shared object file: No such file or directory" 
when you trying to run your application  (thanks to this post)
Don't forget to include :
java -Djava.library.path=/usr/local/lib


That's it - Happy messaging!



2 comments:

  1. Hello Yan,

    You and your readers might be also interested in our article. It tells you about load balancing between working threads using ZeroMQ:

    http://sysgears.blog.com/2010/12/08/load-balancing-work-between-java-threads-using-zeromq/

    Have a nice time reading.

    ReplyDelete