ワークフロー・クライアント構成ファイル - wf_client_config.xml
クライアント構成のXSDスキーマは、wf_client_config.xsd
ファイルにあります。
サーバー構成には、次の3タイプのクライアントが含まれている必要があります。
-
localClient
-
remoteClient
-
soapClient
すべてのクライアントを指定することをお薦めします。これは、リモート・クライアントを持たないサービス(アイデンティティ・サービスなど)があるためです。このため、他のサービスでリモート・クライアントを使用する場合、アイデンティティ・サービスではSOAPサービスを使用します。
次のコード・サンプルに、クライアント構成のXMLファイルの例を示します。この構成によって、default
という名前のサーバーが定義されます。このXMLファイルは、クライアント・アプリケーションのEARファイルに移動する必要があります。
<workflowServicesClientConfiguration> server name="default" default="true"> <remoteClient> <serverURL>t3://myhost.us.example.com:7001</serverURL> <userName>weblogic</userName> <password>weblogic</password> <initialContextFactory>weblogic.jndi.WLInitialContextFactory </initialContextFactory> <participateInClientTransaction>false</participateInClientTransaction> </remoteClient> <soapClient> <rootEndPointURL>http://myhost.us.example.com:7001</rootEndPointURL> <identityPropagation mode="dynamic" type="saml"> <policy-references> <policy-reference enabled="true" category="security" uri="oracle/wss10_saml_token_client_policy"/> </policy-references> </identityPropagation> </soapClient> </server> </workflowServicesClientConfiguration>
次のコード・サンプルに、複数の構成が定義されたクライアント構成ファイルの例を示します。
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <workflowServicesClientConfiguration xmlns="http://xmlns.oracle.com/bpel/services/client" clientType="REMOTE" <server name="server1" default="true" clientType="SOAP"> <remoteClient> <serverURL>t3://myhost1.us.example.com:7001</serverURL> <initialContextFactory>weblogic.jndi.WLInitialContextFactory</initialContextFactory> <participateInClientTransaction>false</participateInClientTransaction> </remoteClient> --> <soapClient> <rootEndPointURL>http://myhost1.us.example.com:7001</rootEndPointURL> <identityPropagation mode="dynamic" type="saml"> <policy-references> <policy-reference enabled="true" category="security" uri="oracle/wss10_saml_token_client_policy"/> </policy-references> </identityPropagation> </soapClient> </server> <server name="server2"> <remoteClient> <serverURL>t3://myhost2.us.example.com:7001</serverURL> <initialContextFactory>weblogic.jndi.WLInitialContextFactory</initialContextFactory> <participateInClientTransaction>false</participateInClientTransaction> </remoteClient> --> <soapClient> <rootEndPointURL>http://myhost2us.example.com:7001</rootEndPointURL> <identityPropagation mode="dynamic" type="saml"> <policy-references> <policy-reference enabled="true" category="security" uri="oracle/wss10_saml_token_client_policy"/> </policy-references> </identityPropagation> </soapClient> </server> </workflowServicesClientConfiguration>
WorkflowServicesClientConfigurationType
wscc
がnull
の場合は、wf_client_config.xml
にクライアント・プロパティを定義できます。
WorkflowServiceClientFactory getWorkflowServiceClient()
メソッドは常に、クラスパス内でwf_client_config.xml
を検索します。このファイルが検出されると、クライアント・プロパティがロードされます。
wf_client_config.xml
ファイルに定義した値は、プロパティ・マップまたはJAXBオブジェクトで定義したすべてのプロパティによってオーバーライドされます。