- Oracle SOAスイートでのSOAアプリケーションの開発
- アプリケーションの完成
- SOAコンポジット・アプリケーションのデバッグおよび監査
- BPELアクティビティ・レベルでのSOAコンポジット・アプリケーションの監査
- BPELアクティビティ・レベルでSOAコンポジット・アプリケーションを監査する方法
BPELアクティビティ・レベルでSOAコンポジット・アプリケーションを監査する方法
この項では、監査ポリシーと監査ポリシー・バインディング・ファイルを作成し、構成する方法を説明します。
BPELアクティビティ・レベルでSOAコンポジット・アプリケーションを監査するには:
- BPELアクティビティの監査レベル設定を定義する監査ポリシー・ファイル(たとえば、
audit-policy.xml
という名前)を作成し、構成します。ファイルには任意の名前を付けることができ、前の項で説明したスキーマに従っている必要があります。<auditPolicies xmlns="http://schemas.oracle.com/bpel/auditpolicy" xmlns:bpel="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" version="1.0"> <auditPolicy name="whilePolicy"> <!-- enabling this will cause all assign activities to not log --> <!-- anything to the audit trail --> <activity type="bpel:assign" auditLevel="production"/> <!-- enabling this will cause all scope activities and all --> <!-- enclosed activities to not log anything to the audit trail --> <activity type="bpel:scope" auditLevel="production"/> <!-- enabling this will cause all while activities to log with --> <!-- minimak level --> <activity type="bpel:while" auditLevel="production"/> <activity type="bpel:reply" auditLevel="production"/> <activity type="bpel:flow" auditLevel="production"/> <activity type="bpel:switch" auditLevel="off"/> <activity type="bpel:terminate" auditLevel="production"/> <activity type="bpel:empty" auditLevel="development"/> <activity type="bpel:wait" auditLevel="production"/> <activity type="bpel:throw" auditLevel="off"/> <activity type="bpel:catchAll" auditLevel="production"/> <activity type="bpel:sequence" auditLevel="off"/> <activity type="bpel:receive" auditLevel="production"/> </auditPolicy> </auditPolicies>
ノート:
BPEL拡張の監査を有効にするには、該当する監査レベル(たとえば、
production
)を指定してbpelx:exec
を入力します。<activity type="bpelx:exec" auditLevel="production"/>
- 監査ポリシーをBPELプロセスにバインドする監査ポリシー・バインディングXMLファイル(たとえば、
audit-binding.xml
という名前)を作成し、構成します。ファイルには任意の名前を付けることができ、前の項で説明したスキーマに従っている必要があります。この例では、myProcess
で始まるすべてのBPELプロセスの監査が有効になるように、ワイルドカード・オプションを使用しています。その他いくつかの監査オプションはコメント化されています。<auditPolicyBindings xmlns="http://schemas.oracle.com/bpel/auditpolicyBinding" version="1.0"> <!-- enabling this will cause all processes in the domain to use this --> <!-- policy audit --> <!-- <process auditPolicyName="whilePolicy" name="BPELProcess*"/> --> <!-- enabling this will cause all processes that start with the name --> <!-- myProcess to use the audit policy 'noLoops' --> <process auditPolicyName="noLoops" name="myProcess*"/> <!-- enabling this will cause all processes --> <!-- process auditPolicyName="noAssign" name="*"/> --> </auditPolicyBindings>
composite.xml
ファイルと同じディレクトリにXMLファイルを配置します。composite.xml
ファイル内でaudit-policy.xml
ファイルとaudit-binding.xml
ファイルを定義します。<property name="oracle.composite.bpelAuditPolicyFile">audit-policy.xml</property> <property name="oracle.composite.bpelAuditBindingFile">audit-binding.xml</property>
- SOAコンポジット・アプリケーションをデプロイします。