Reputation: 33
I am trying to call a native VOIP library from an EJB. However, on
System.loadLibrary(...)
JBoss shuts down: it says it received an ABRT and shuts down.
I know about JCA, but I'm looking for a more pragmatic solution. Is there a (low effort) way of calling a JNI function from an EJB?
(using JBoss EAP 6 + Java 6 on SLES 11 64bit)
------> Thanks for the helpful answers! I implemented a small external java app that encapsulates the jni stuff and offers a webservice.
Upvotes: 3
Views: 944
Reputation: 719
I haven't done EJB for a few years but unless it has changed since, one of the EJB restrictions is that you can't call native code.
How I worked around this was from EJB, I could make a call to a RMI server and a JNI call can happen from there.
Upvotes: 2