Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can JNI be used to access EJB services

 
Tauqueer Ali
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Manjunath Rane
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic