30 lines
2.1 KiB
HTML
30 lines
2.1 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
|
||
|
|
||
|
<title>Program with the JRas framework</title>
|
||
|
</head>
|
||
|
|
||
|
<BODY>
|
||
|
<!-- Java sync-link -->
|
||
|
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
||
|
|
||
|
<h4><a name="jrasprg"></a>Program with the JRas framework</h4>
|
||
|
|
||
|
<p>Use the JRas extensions to incorporate message logging and diagnostic trace into WebSphere Application Server - Express applications. The JRas extensions are based on the standalone 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.</p>
|
||
|
|
||
|
<p>To program an application using the WebSphere Application Server - Express JRas extensions, perform the following steps:</p>
|
||
|
|
||
|
<ol>
|
||
|
<li>Determine the mode of the extensions: integrated, standalone or combined. For more information on extension modes, see <a href="jrasext.htm">JRas extensions</a>.</li>
|
||
|
<li>If the extensions are used in either standalone or combined mode, create the necessary handler and formatter classes. For examples of how to create handler and formatter classes, see <a href="jrasxtf.htm">Extending the JRas framework</a>.</li>
|
||
|
<li>If localized messages will be used by the application, create a resource bundle as described in <a href="jrascrtrb.htm">Create JRas resource bundles and message files</a>.</li>
|
||
|
<li>In the application code, get a reference to the Manager class and create the manager and logger instances as described in <a href="jrascrtml.htm">Create JRas manager and logger instances</a>.</li>
|
||
|
<li>Insert the appropriate message and trace logging statements in the application as described in <a href="jrascrtml.htm">Create JRas manager and logger instances</a>.</li>
|
||
|
</ol>
|
||
|
|
||
|
</body>
|
||
|
</html>
|