All Plex objects are scoped under the “iSeries Items”
entity.
If any changes need to be made, then these objects will need
to be inherited from.
To run these processes fully, you will need 3 files (Download the ZIP with the files attached to this article).
This is the IBM AS400 Java Toolkit. This needs to be referenced by your
application.
This needs to be in the “spoolfile” package. This is the download servlet for opening a
spool file as text.
This needs to be in the “spoolfile” package. This is the java class that allows us to sort
spool files from newest to oldest.
By default, the functions are designed to read the
“DefaultAS400” section of the obclient.properties file.
If you want to change this, it is read from the “Default
Properties Area” message scoped under the entity.
The DefaultAS400.User and DefaultAS400.Password properties
will need to either be hard set, or set at runtime by the application.
For the Spool File Download Servlet to connect to the
iSeries, the DefaultAS400.User and DefaultAS400.Password properties will need
to be hard set to a general login that can access all the user’s spool
libraries.
If you do not want to do this, then this can be changed to
read items in Java Memory to get this information. The information will need to be set when the
user logs into the application.
To make changes to the servlet, find the “doGet” method in
“OpenSpool.java”. The AS400 object
called “as400” is what needs to be properly created to output the spool file.
The only workspace changes need to run these items is to add
a reference to the OpenSpool servlet in your web.xml. The added entry will look like this:
There are 4 functions included in this entity that need to
be compiled.
This is the main function used to view and interact with the
spool files.
By default, it shows spool files from the last 90 days. You may also filter the search in many
different ways. By selecting a row and
clicking the proper button, you may open or delete a spool file from this
screen.
This function allows you to delete all spool files from
before a specified date.
This function kicks off the Spool Download Servlet in a new
tab in the browser.
This is the blockfetch function that is used to load the
grid. It first creates a sorted
enumeration of a spool file list. Then,
parses that list into individual records.
If there is any custom filtering needed (like filtering out certain
queues, spool names, libraries, etc.), this is where that change would be made.
This entity contains several AS400 specific processes that
can be useful to the user.
This function is used to display any AS400 messages sent to
the current user profile.
This function allows the user to view all batch jobs
currently running on the AS400.
There are several functions used here to allow the user to
interact with the printer and any messages associated with that printer.
From this function, you may issue Start, End, Hold, and
Release commands on the devices the user is allowed to interact with. If you press the Messages, button it will
load a new screen showing any messages tied to the selected printer.
From here you can remove a specific message, remove all
messages, or remove answered messages.
Or, you can Reply to a specific message.