Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF calling native programs

 
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
Saloon Keeper
Posts: 18303
56
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic