[zeromq-dev] Java API visibility
Martin Sustrik
sustrik at fastmq.com
Wed Jun 10 09:15:11 CEST 2009
Lucas,
> Great! But yesterday at night i was able to successfuly compile the Zmq
> class with the org.zmq namespace after modify a couple of c++ files,
> Makefiles and the java class. Was a nice experience (!) Im using POSIX, btw
>
> There is any plans to implement something better to manage
> errors than assert? Exceptions? I really don't know if that is possible
> with JNI
0MQ was originally intended for environments with a need for extra-high
reliability. The asserts are intended to prevent sweeping the errors
under the carpet. Each assert indicates problem with the application
that should be solved before moving it into production.
However, in the meantime it turned out that majority of 0MQ users don't
care about reliability as much as to use long debugging and testing
cycles required by above fast-fail methodology.
To address this trend, the new zsockets API will return POSIX errors
rather than asserts.
Martin
More information about the zeromq-dev
mailing list