This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF calling native programs  RSS feed

 
Ty Davis
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Im a novice JSF/Java programmer. Im currently developing on an (what was called an) AS/400.

Currently Im using java native methods to call RPGLE subprocedures and return data/results. Service Program = Java Class | subProcedure = Java method

Is there a way that I can ?override? the java class structure and call the RPGLE subprocedures directly without having to use the java native wrapper?

Ive been reading the JSF 2.0 Complete Reference and it appears that I could override the (I think it's called) ?processAction? method. Is that a direction I could take?

Thank You.


 
Tim Holloway
Bartender
Posts: 18661
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is Write-Once/Run-Anywhere, so direct invocation of any OS-specific service or non-Java code isn't possible. If your iSeries system allows you to present these commands as web services or remote method calls, you might be able to get away with pure Java. Otherwise, your best bet is to just supply JNI glue API modules. Or, if possible run them as command-line processes, via the java Runtime exec functionality.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!