mDialog / scala-zeromq

Thread-safe ZeroMQ for Scala
Other
126 stars 13 forks source link

zeromq-scala-binding outdated #24

Open drozzy opened 9 years ago

drozzy commented 9 years ago

It seems like zeromq-scala binding was abandoned. Is there a way to make this work without it?

Any help much appreciated.

chrisdinn commented 9 years ago

scala-zeromq also works with https://github.com/zeromq/jzmq, that's how we use it in production. jzmq is little bit more difficult to use but it's much faster.

drozzy commented 9 years ago

Do you know if I can just depend on jzmq in my build.sbt? Or do I need to build it somehow. (Bonus: I am running windows too)

chrisdinn commented 9 years ago

Unfortunately, it's more complicated than that. jzmq has two parts: a jar to use in your app (you can put this into lib/ in your project) and a native library (libjzmq). Not sure about Windows support.

damienlevin commented 9 years ago

Alternatively you could give a try with https://github.com/zeromq/jeromq. We had some incompatibilities a while ago but this might be resolved by now.

I was able to get it working with a patch version of jeromq few months ago. See : https://github.com/damienlevin/scala-zeromq/tree/jeromq

drozzy commented 9 years ago

@damienlevin So should I use your fork? Or were you thinking of merging it back into the main project?

jasongoodwin commented 8 years ago

@drozzy I believe for JeroMQ you do have to use Damien's fork currently.

There is another approach to get up and running: you can do the native zeromq install and then add the jzmq dependency to your project: http://search.maven.org/#artifactdetails%7Corg.zeromq%7Cjzmq%7C3.1.0%7Cjar

That avoids trying to get jzmq on your path correctly etc. As Chris mentioned it can be a bit of a pain to get everything configured correctly.