(zos)Issuing application messages in the MVS master console
With the WAS for z/OS reliability, availability, and serviceability support for Java (JRas) framework, we can issue messages from the Java application to the MVS™ master console. We might want to issue messages to the master console to report serious error conditions for mission-critical applications, or to trigger automation packages.
The JRas framework described in this task and its sub-tasks is deprecated. However, we can achieve similar results using Java logging.
The messages the application issues also appear in either the error log stream or the component trace (CTRACE) data set that WebSphere Application Server for z/OS uses.
Logging the messages is another method of recording error conditions or collecting application data for diagnostic purposes.
WebSphere Application Server for z/OS provides code that creates and manages a message logger, which processes the application's messages. WebSphere Application Server for z/OS creates only one message logger for each unique organization, product, or component, so that we can more easily identify the messages recorded in the error log stream or CTRACE data set for a specific application. The message logger runs in the JVM for the WAS for z/OS server in which the Java application will run.
To use a message logger, in the Java application:
- Log messages and trace data for Java server applications.
- Drive the method to instruct WebSphere Application Server for z/OS to create the message logger.
- Code messages at appropriate points in the application.
Related tasks
Logging messages and trace data for Java server applications