Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Can JNI be used to access EJB services

 
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.
 
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
 
It was the best of times. It was the worst of times. It was a tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic