You can define a POJO 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 CA WA Agent for UNIX, Linux, or Windows and either CA WA Agent for Application Services or CA WA Agent for Web Services.
To define a POJO job
The Application appears in the workspace.
The POJO icon appears on the Application workspace view.
The Basic page of the POJO dialog opens.
Defines the name of the job that you want to schedule.
Limits: 128 alphanumeric characters, plus the special characters commercial at (@), pound (#), dollar sign ($), underscore (_), square brackets ([]), brace brackets ({}), and percent sign (%) as a symbolic variable introducer character.
Specifies the name of the agent that lets you access a remote server and invoke a method on a Java object.
Specifies the Java class to instantiate.
Example: java.lang.String
Specifies the Java method to call on the instance of the Java object.
Example: concat
Specifies the location of the Java serialized object produced by the job.
Note: If you do not specify an output destination, the Java serialized object is stored in the spool directory on the agent computer using the job name and a numeric suffix as the file name.
The Method Parameters page opens in the right pane.
The New Parameter dialog opens.
The fields related to the option appear.
Specifies the Java class of the parameter. This field is mandatory for the Value and Array parameter options only.
Example: Integer
(Optional) Specifies the String value for the method parameter. This field is used with the Value parameter option.
Example: 2
Specifies the name of the predecessor job that produced the Java serialized object to be used as an input parameter. This field is used with the Payload producing job parameter option.
Note: The job must be defined within the same Application as the job you are defining.
Example: ANYJOB.URI
Specifies a set of string values for the method parameter. Click Add to enter each value. This field is used with the Array parameter option.
Example: 1, 2, 3
The New Parameter dialog closes and the parameters appear in a list.
The POJO job is defined.
Example: Define a POJO Job
Suppose that you want to define a POJO job that creates an empty java string, and calls the method parseInt on it with the argument “5”.
To define a POJO job
|
Copyright © 2011 CA.
All rights reserved.
|
|