[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 622
  • Last Modified:

jni on iSeries for ile c++ module

I need to create a jni interface to a ile c++ module (.mod).  I need to call functions in the c++ module and receive results from a java servlet running in WebSphere.  Can anyone give me some guidance on this?
0
dhenderson12
Asked:
dhenderson12
2 Solutions
 
jkrCommented:
I'd suggest to take a look at the JNI tutorial at http://www.codetoad.com/java_simpleJNI.asp - this article explains how to do that in detail, take a look at the code snippets. The whole description and documentation can be found at http://java.sun.com/docs/books/jni/ ("Java Native Interface: Programmer's Guide and Specification"). There's also a LGPLed library that might help: http://jnative.sf.net
0
 
tliottaCommented:
dhenderson12:

It's not clear where you're starting, so start at the beginning, I suppose.

Perhaps here for V5R4:

http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzaha/whatitis.htm

...or V5R2:

http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/rzaha/whatitis.htm

Other VRMs have similar Info Center sections.

Then there's the Redbook:

http://www.redbooks.ibm.com/redbooks/pdfs/sg247353.pdf

If you already have all of that (and jkr's references), then you must be at a particular point and stuck for what to do next. Or are you simply looking for design elements to guide your development?

Tom
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now