Program with the JRas framework
Use the JRas extensions to incorporate message logging and diagnostic trace into WAS applications. The JRas extensions are based on the stand-alone JRas logging toolkit. To program with the JRas framework, you retrieve a reference to the JRas manager, retrieve message and trace loggers by using methods on the returned manager, and call the appropriate methods on the returned message and trace loggers to create message and trace entries, as appropriate.
To program an application using the WAS JRas extensions, perform the following steps:
- Determine the mode of the extensions: integrated, stand-alone or combined. For more information on extension modes, see JRas extensions.
- If the extensions are used in either stand-alone or combined mode, create the necessary handler and formatter classes. For examples of how to create handler and formatter classes, see Extending the JRas framework.
- If localized messages will be used by the application, create a resource bundle as described in Create JRas resource bundles and message files.
- In the application code, get a reference to the Manager class and create the manager and logger instances as described in Create JRas manager and logger instances.
- Insert the appropriate message and trace logging statements in the application as described in Create JRas manager and logger instances.