WebSphere Service Registry and Repository (WSRR) Connectivity サンプルのインポートが完了してから、このサンプルを実行するには、 WebSphere Service Registry and Repository に接続するように WebSphere Message Broker を構成する必要があります。 WebSphere Service Registry and Repository Connectivity サンプルを実行するには、以下の手順を実行する必要があります。
WebSphere Service Registry and Repository Connectivityサンプル (WebSphere Service Registry and Repository Connectivity サンプルを参照) をインポートすると、 必要な WSDL 文書である DemoCustomer_v10.wsdl と DemoCustomer_v20.wsdl が 「WSRR Connectivity Message Flows」プロジェクトに組み込まれます。 これらのファイルをローカル・ファイル・システムにエクスポートしたら、 お好きなツールを使用してこの 2 つの WSDL ファイルをサービス・レジストリーにインポートし、 「Version」プロパティーを適切に設定します。 詳細な説明については、WebSphere Service Registry and Repository の資料を参照してください。
WSDL 文書をサービス・レジストリーにインポートすると、該当するバージョンで WSDL 文書を使用できるようになります (以下の画面取りを参照)。
サービス・レジストリーのプロパティーの表示と変更について詳しくは、WebSphere Message Broker 資料で、WebSphere Service Registry and Repository ノードの構成パラメーターの表示および WebSphere Service Registry and Repository ノードの構成パラメーターの変更を参照してください。
セキュアな Service Registry に接続するためのブローカーの構成方法に関する情報は、セキュアな WSRR リポジトリーへのアクセスを参照してください。
以下の手順により、サンプルの実行に必要な最小の構成が表示されます。
mqsireportproperties broker name -c ServiceRegistries -o DefaultWSRR -r
このコマンドを実行すると、以下の出力と同様の応答が生成されます。
ReportableEntityName='' ServiceRegistries DefaultWSRR='' connectionFactoryName='jms/SRConnectionFactory' enableCacheNotification='false' endpointAddress='http://fill.in.your.host.here:9080/WSRRCoreSDO/services/WSRRCoreSDOPort' initialContextFactory='com.ibm.websphere.naming.WsnInitialContextFactory' locationJNDIBinding='iiop://fill.in.your.host.here:2809/' needCache='true' predefinedCacheQueries='' refreshQueriesAfterNotification='true' subscriptionTopic='jms/SuccessTopic' timeout='100000000'
mqsichangeproperties broker name -c
ServiceRegistries -o DefaultWSRR -n endpointAddress -v
http://hostname:9080/WSRRCoreSDO/services/WSRRCoreSDOPort
手順 1 を繰り返して、ブローカーのプロパティーが更新されたことを確認します。
「endpointAddress」が適切に設定されたことを確認します (以下に例を示します)。
endpointAddress='http://myHostName.myDomain.com:9080/WSRRCoreSDO/services/WSRRCoreSDOPort'
WebSphere Service Registry and Repository Connectivity サンプルを実行できるようになりました。 WebSphere Service Registry and Repository Connectivity サンプルの実行を参照してください。
WebSphere Message Broker でサポートされる特定のレベルの WSRR について詳しくは、
WebSphere Message Broker 要件を参照してください。