EJB and JNI
I have a product write by JNI to call some java object on server side. Like
VB -> JNI bridge -> client jar -> (RMI) -> server.
Now the server was changed to J2EE & EJB2.1. The procedure become
VB -> JNI bridge -> client jar -> (EJB) Server
I tried to call the EJB from VB thought JNI, the bridge was crash when JNI try to create object that define in java (in Client jar).
My question is 揇oes JNI can work with EJB? Where I can find example of how to compile or any related information?
Thanks!
[568 byte] By [
GeoZHa] at [2007-11-26 13:43:02]

# 2
Thank you so much!
My JNI like next, error is happen on NewObject
Jc= WJC::getClass("/MyJar/myClass");
if(Jc==0){ error=WJC::getError(); return; }
jmethodID constructor= WJC::getMethodID(Jc,"<init>","()V");
if(constructor==0){error="Impossible to find 'myClass' constructor method ID";return;
}
Jthis= WJC::getEnv()->NewObject(Jc, constructor);
In RMI version,this program works well. In EJB version, "myClass" have no change at all. Only different is "myjar" modified for access EJB.
Do I need change somthing in my Jar?