Pleas have a look at following problem We have Client system on C++ & Solaris. Earlier Server system(Its located at some other place) was also in C++ & Solaris. Communication protocol bet'n client & server was DCE ( Distributed Computing Environment). Now Server has migrated to Java & EJB. Our problem is to access these EJB services from C++ Client with minimum modification on Client side. Solutions suggested are 1. Using SOAp & XML ( We r looking into it) 2. Using JNI Out of that I am looking into JNI apporach ...but I am not able to find out if we can access EJB services from server using JNI? I will be thankful to if somebody can guide me in this case. regards Ali.
JNI, u must be kidding. U don't have a Java CLient right...so how will the JNI help. SOAP-XML is obviously suited for this approach. Let the C++ client invoke a Http Socket Session to a Java Servlet and pass the serialized data. The Servlet(u'll have to write this) will have a EJB client. This servlet will accept the data and connect to EJB, invoking whatever remote method u have designed. This way ur Client is also automatically ready for the Web services Architecture...so later sometime u do decide to shift to Web Services...u wont have to use this Forum...he he he Cheers, Manja