This section discusses the supported model for programming with JRas in WebSphere Application Server.
In WebSphere, you create and manage JRas loggers and managers by using the Manager class of the com.ibm.websphere.ras package. The Manager class provides mechanisms to obtain JRas message and trace loggers that are integrated with WebSphere; it also provides the ability to group trace loggers into logical groups. The basic process for creating JRas objects is to retrieve a reference to the JRas manager by using the getManager method of the com.ibm.websphere.ras.Manager class, then to retrieve message and trace loggers by using methods on the returned manager. See Creating manager and logger instances for sample code illustrating this process.
The retrieved loggers are implementations of the RASIMessageLogger and RASITraceLogger interfaces. You then program to these interfaces, both of which are derived from the RASILogger interface. The loggers are stateful objects with their states tied to an existing Java Virtual Machine (JVM) and run-time instance. These interfaces are discussed in Using loggers.