• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using JNI with EJB

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi folks,
We have to call a C++ code from a session bean.
We had to go for JNI.
My doubt is, Is there any chance that this bridge can fail? Are EJB containers failsafe in this regard.
The doubt whether EJB should be used when calling C/C++ code always lingers.
Please help.
Regards,
Janarthan S
 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Janarthan,
does using the JNI is client requirement? If not then don't go for the JNI...there are many problems of threading while calling a c/c++ code from java enviornment.
My suggestion will be to go for CORBA for this hetrogeneous communciation. Please use the proxy design patern and then try to communicate through these proxies.
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Jana,
You can alternatively use JCA for integrating your J2EE applications with Legacy applications or you can use JMS. These are the other alternatives available for integrating legacy applications with the j2ee applications.
Hope this helps. But be sure which is relavant.
thanks,
vijay.
 
Looky! I'm being abducted by space aliens! Me and this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic