You can define a POJO (POJO_JOB) job to create a Java object instance with no arguments, invoke a method on the object instance, and store the method's output.
Note: To run these jobs, your system requires the following agents:
Required Statements
To define a POJO job, you must specify the following statements:
Optional Statements
You can specify the following optional statements for a POJO job:
Example: Invoke a Method on a Java Object Instance
Suppose that you want to define a POJO job that creates a Java String with value "5" and calls the parseInt method with the created Java String object as an argument. The parseInt method returns a Java Integer object.
AGENT APPAGENT CLASSNAME java.lang.Integer METHOD parseInt PARAMETER TYPE(java.lang.String) VALUE(5)
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|