プロパティー・ファイルを使用して、サービス統合バス・オブジェクトのバス宛先の作成、変更、削除を行えます。サービス統合は、製品のデフォルトの Java Message Service (JMS) メッセージング・プロバイダーです。
始める前に
サービス統合宛先オブジェクト構成に設定するプロパティー値を決定します。
wsadmin スクリプト・ツールを開始します。
Jython 言語を使用して wsadmin を開始する場合は、サーバー・プロファイルの bin ディレクトリーから wsadmin -lang Jython コマンドを実行します。
このタスクについて
プロパティー・ファイルを使用して、サービス統合宛先オブジェクトおよびその構成プロパティーの作成、変更、削除を行えます。
表 1. サービス統合宛先プロパティー・ファイルのアクション. サービス統合宛先構成プロパティーは作成、変更、または削除できます。アクション |
手順 |
作成 |
プロパティー・ファイルに commandName=createSIBDestination を指定します。
applyConfigProperties コマンドを実行します。 |
modify |
プロパティー・ファイルに commandName=modifySIBDestination を指定します。
applyConfigProperties コマンドを実行します。 |
delete |
プロパティー・ファイルに commandName=deleteSIBDestination を指定します。
applyConfigProperties コマンドを実行します。 |
プロパティーの作成 |
該当なし |
プロパティーの削除 |
該当なし |
手順
- サービス統合宛先オブジェクトを作成、変更、または削除します。
- サービス統合宛先オブジェクトを作成します。
エディターを開き、ヘッダーに commandName=createSIBDestination を指定し、サービス統合バス宛先プロパティーを指定して、ファイルを保存します。
以下のサービス統合バス宛先構成をプロパティー・ファイルにコピーして、必要に応じてプロパティーを編集することができます。また、サーバーと、ノードまたはクラスターも指定します。
#
# Header
#
CreateDeleteCommandProperties=true
commandName=createSIBDestination
#
#
# Properties
#
delegateAuthorizationCheckToTarget=null #Boolean
receiveAllowed=null #String
defaultPriority=null #Integer
nonPersistentReliability=null #String
persistentReliability=null #String
type=Queue #String,required
mqRfh2Allowed=null #Boolean
aliasBus=null #String
maxReliability=null #String
receiveExclusive=null #Boolean
exceptionDestination=null #String
foreignBus=null #String
overrideOfQOSByProducerAllowed=null #String
useRFH2=null #Boolean
blockedRetryTimeout=null #java.lang.Long
wmqQueueName=null #String
topicAccessCheckRequired=null #Boolean
wmqServer=null #String
targetBus=null #String
targetName=null #String
bus=myBus #String,required
reliability=null #String
server=myServer #String
node=myNode #String
replyDestination=null #String
auditAllowed=null #Boolean
description=null #String
cluster=null #String
maintainStrictMessageOrder=null #Boolean
sendAllowed=null #String
replyDestinationBus=null #String
maxFailedDeliveries=null #Integer
name=myDest #String,required
persistRedeliveryCount=null #Boolean
- サービス統合バス宛先オブジェクトを変更します。
エディターを開き、ヘッダーに commandName=modifySIBDestination を指定し、
必要に応じてサービス統合バス宛先プロパティーを変更して、ファイルを保存します。
- サービス統合宛先オブジェクトを削除します。
エディターを開き、ヘッダーに commandName=deleteSIB destination を指定し、
バス・プロパティーを指定して、ファイルを保存します。
#
# Header
#
CreateDeleteCommandProperties=true
commandName=deleteSIBDestination
#
#
# Properties
#
bus=myBus #String,required
foreignBus=null #String
aliasBus=null #String
name=myDest #String,required
- applyConfigProperties コマンドを実行します。
applyConfigProperties コマンドを実行すると、構成にプロパティー・ファイルが適用されます。以下の Jython の例では、オプションの -reportFileName パラメーターによって report.txt という名前のレポートが作成されます。
AdminTask.applyConfigProperties(['-propertiesFileName mySIBDestination.props -reportFileName report.txt '])
オプションで、コマンドを対話モードで使用できます。
AdminTask.applyConfigProperties('-interactive')
タスクの結果
プロパティー・ファイルを使用して、サービス統合バス宛先オブジェクトを構成および管理することができます。