Use native JNIMessage

Try to use native library, fallback
to java messagelib.