9.3.5 回線トレース
キュー間転送でやり取りされる電文の情報を回線トレースファイルに出力します。
-
出力先ディレクトリ
<Application Serverのインストールディレクトリ>/CC/server/public/ejb/<サーバ名称>/logs/RM/maintenance
-
出力トレースファイル名
ラップアラウンド形式ローテーションの場合 lin_<Reliable Messagingの表示名>_<面番号>.log シフト形式ローテーションの場合
-
最新ファイル名
lin_<Reliable Messagingの表示名>.log
-
バックアップファイル名
lin_<Reliable Messagingの表示名>_<面番号>.log
-
-
コントロールファイル名※
lin_<Reliable Messagingの表示名>_.conf
Reliable Messagingの表示名については,永続版リソースアダプタの場合は「3.4.4(1) キュー定義ファイルの記述形式」を,非永続版リソースアダプタの場合は「3.5.2(1) キュー定義ファイルの記述形式」を参照してください。
面番号はRMLogTraceFileNumプロパティ指定値が最大数です。また,トレースファイル(拡張子がlogのファイル)サイズはRMLogTraceFileSizeプロパティ指定値が最大長(単位:バイト)です。
- 注※
-
ログライブラリが使用するバイナリ形式のファイルを出力先ディレクトリに出力します。ファイルサイズは固定で256バイトです。
-
出力形式
回線トレースの出力形式を次の図に示します。
図9‒7 回線トレースの出力形式 回線トレースの出力項目を次の表に示します。
表9‒9 回線トレースの出力項目 項番
出力項目
長さ
(バイト)
説明
1
番号
4
トレースレコードの通番です。
2
日付
10
トレースの取得日付です。
形式はyyyy/mm/ddです。
3
時刻
12
トレースの取得時刻です。
形式はhh:mm:ss.sssです。
ローカル時刻でミリ秒単位の時刻です。
4
製品ID
16
製品を識別するための識別子です。
Reliable Messagingを表す"RM"が出力されます。
5
pid
8
プロセスIDです。
6
tid
8
スレッドIDです。
7
ID
11
空白が出力されます。
8
送受信識別子
7
出力する電文の種別と送受信タイミングを判別する識別子です。識別子の種類は次のとおりです。
-
リクエストメッセージの送信:SND_REQ
-
リクエストメッセージの受信:RCV_REQ
-
レスポンスメッセージの送信:SND_RES
-
レスポンスメッセージの受信:RCV_RES
9
送信先/送信元アドレス
0〜533
送信時は出力する電文の送信先アドレス,受信時は,電文を送信した送信元アドレスを示します。
10
電文情報
0〜512※1
RMLineTraceLevelプロパティに指定する出力レベル※2によって出力情報は異なります。
次に示す情報が出力されます。
-
プロトコル固有ヘッダ情報
SOAPヘッダに含まれるプロトコル固有のヘッダ情報です。
-
SOAPヘッダ
-
SOAPエンベロープ
SOAPエンベロープ(SOAPヘッダ+SOAPボディ)情報です。
-
SOAPエンベロープ + SOAPアタッチメント情報
11
CRLF
2
終端記号です。
表9‒10 回線トレースの出力情報と出力レベル 項番
出力情報
レベル1
レベル2
レベル3
レベル4
レベル5
1
SOAPヘッダ
×
×
○
×
×
2
SOAPエンベロープ
(SOAPヘッダ+SOAPボディ)
×
×
×
○
×
3
SOAPエンベロープ+SOAPアタッチメント情報
×
×
×
×
○
電文情報の出力範囲と出力レベルを次の図に示します。
図9‒8 電文情報の出力範囲と出力レベル -