Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using JNI with EJB  RSS feed

 
Janarthan Sathiamurthy
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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
 
Dhananjay Inamdar
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • 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.
 
Vijayakumar Arya
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!