Execute Using EX

How to:

You can invoke a user-written JAVA class with the EX command from your user session if SET EXORDER is also used when considering external programs for execution. This usage assumes the desired class is in a jar on the CLASSPATH of the server.


Top of page

x
Syntax: How to Use EX to Execute a JAVA Class
EX java.classparameter1, parameter2, ...

where:

java.class

Is the full name of the class to be invoked and must be preceded by the prefix java.

parameter1, parameter2, ...

Are the parameters which must be passed to the JAVA class according to the rules described in Passing Parameters.



Example: Calling ibi.cjsamples.cjsamp Using EX
SET EXORDER=PGM/FEX
EX java.ibi.cjsamples.cjsamp parameter1,
 "subparm1=val1,subparm2=val2",simple parameter3
-EXIT

iWay Software