aspose file tools*
The moose likes Distributed Java and the fly likes Can JNI be used to access EJB services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Can JNI be used to access EJB services" Watch "Can JNI be used to access EJB services" New topic
Author

Can JNI be used to access EJB services

Tauqueer Ali
Ranch Hand

Joined: Sep 05, 2001
Posts: 53
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.


SCJP2, SCWCD, XML, OOAD<br />Kolkata, India
Manjunath Rane
Greenhorn

Joined: Jan 05, 2003
Posts: 8
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


Cheers,<br />Manja
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can JNI be used to access EJB services