IBM MQ トピック接続ファクトリー・プロパティー・ファイルの使用
プロパティー・ファイルを使用して、IBM MQ トピック接続ファクトリー・プロパティーの作成または変更を行えます。
始める前に
IBM MQ トピック接続ファクトリー構成に行う変更を決定します。
wsadmin スクリプト・ツールを開始します。 Jython 言語を使用して wsadmin を開始する場合は、サーバー・プロファイルの bin ディレクトリーから wsadmin -lang Jython コマンドを実行します。
このタスクについて
プロパティー・ファイルを使用して、IBM MQ トピック接続ファクトリー・オブジェクトおよびその構成プロパティーの作成、変更、削除を行えます。
wsadmin を使用して管理コマンドを実行し、 IBM MQ トピック接続ファクトリー・プロパティー・ファイルの作成または変更、プロパティーの検証、プロパティーの構成への適用を行います。
アクション | 手順 |
---|---|
作成 | プロパティーを設定し、applyConfigProperties コマンドを実行します。 |
modify | プロパティーを編集し、applyConfigProperties コマンドを実行します。 |
delete | #DELETE=true のコメントを外し、deleteConfigProperties コマンドを実行します。 |
オプションで、以下のコマンドを使用して、対話モードを使用することができます。
AdminTask.command_name('-interactive')
手順
- IBM MQ トピック接続ファクトリーおよびそのプロパティーを作成します。
- MQTopicConnectionFactory オブジェクトのプロパティー・ファイルを作成します。
エディターを開き、IBM MQ トピック接続ファクトリー・プロパティー・ファイルを作成します。 このステップのプロパティー・ファイルの例をエディターにコピーして、プロパティーを状況に応じて変更できます。
以下は、セル有効範囲の IBM MQ JMS Provider という名前の JMSProvider の下にある、 名前が myName で、JNDI 名が tcfJndiName である MQTopicConnectionFactory オブジェクトのプロパティー・ファイルの例です。 この例には、関連する ConnectionPool (MQTopicConnectionFactory の connectionPool 属性) が含まれます。
# # Header # ResourceType=MQTopicConnectionFactory ImplementingResourceType=GenericType ResourceId=Cell=!{cellName}:JMSProvider=IBM MQ JMS Provider:MQTopicConnectionFactory=jndiName#tcfJndiName #DELETE=true # #Properties # wmqServerSvrconnChannel=null diagnoseConnectionUsage=false #boolean,default(false) CCSID=null rcvExit=null wmqServerName=null sslConfiguration=null pubSubCleanup=SAFE #ENUM(STRONG|SAFE|ASPROP|NONE),default(SAFE) host=null category=null brokerControlQueue=null tempModel=null directAuth=BASIC #ENUM(BASIC|CERTIFICATE),default(BASIC) secExit=null proxyPort=0 #integer,default(0) name=tcfName #required xaRecoveryAuthAlias=null description=null brokerCCSubQ=null wildcardFormat=topicWildcards #ENUM(characterWildcards|allWildcards|topicWildcards),default(topicWildcards) useConnectionPooling=true #boolean,default(true) pubSubCleanupInterval=3600000 #long,default(3600000) manageCachedHandles=false #boolean,default(false) wmqServerEndpoint=null provider=IBM MQ JMS Provider #ObjectName(JMSProvider),readonly ccdtUrl=null providerVersion=null sslResetCount=0 #integer,default(0) secExitInitData=null pollingInterval=5000 #integer,default(5000) tempTopicPrefix=null brokerPubQueue=null proxyHostName=null brokerVersion=MQSI #ENUM(MA0C|MQSI),default(MQSI) queueManager=null jndiName=tcfJndiName #required sendExit=null authMechanismPreference=BASIC_PASSWORD #ENUM(BASIC_PASSWORD|KERBEROS),default(BASIC_PASSWORD) sendExitInitData=null multicast=DISABLED #ENUM(DISABLED|NOT_RELIABLE|RELIABLE|ENABLED),default(DISABLED) maxBatchSize=10 #integer,default(10) statRefreshInterval=60000 #integer,default(60000) XAEnabled=true #boolean,default(true) providerType=null #readonly rcvExitInitData=null channel=null port=0 #integer,default(0) authDataAlias=null sslPeerName=null rescanInterval=5000 #integer,default(5000) compressHeaders=NONE #ENUM(SYSTEM|NONE),default(NONE) failIfQuiesce=true #boolean,default(true) brokerSubQueue=null clientID=null localAddress=null publishAckInterval=25 #integer,default(25) brokerQueueManager=null sslCRL=null sparseSubscriptions=false #boolean,default(false) substore=MIGRATE #ENUM(QUEUE|MIGRATE|BROKER),default(MIGRATE) logMissingTransactionContext=true #boolean,default(true) transportType=BINDINGS #ENUM(BINDINGS_THEN_CLIENT|DIRECTHTTP|BINDINGS|DIRECT|CLIENT),default(BINDINGS) sslCipherSuite=null compressPayload=NONE #ENUM(ZLIBHIGH|ZLIBFAST|RLE|NONE),default(NONE) qmgrType=QMGR #ENUM(QSG|QMGR),default(QMGR) sslType=NONE #ENUM(CENTRAL|SPECIFIC|NONE),default(NONE) cloneSupport=false #boolean,default(false) msgSelection=BROKER #ENUM(CLIENT|BROKER),default(BROKER) # # SubSection 1.0.0.2 # ConnectionPool attributes # ResourceType=ConnectionPool ImplementingResourceType=GenericType ResourceId=Cell=!{cellName}:JMSProvider=IBM MQ JMS Provider:MQTopicConnectionFactory=jndiName#tcfJndiName:ConnectionPool= AttributeInfo=connectionPool # # #Properties # stuckThreshold=0 #integer,default(0) unusedTimeout=1800 #long,default(1800) maxConnections=10 #integer,default(10) stuckTimerTime=0 #integer,default(0) testConnectionInterval=0 #integer,default(0) minConnections=1 #integer,default(1) surgeThreshold=-1 #integer,default(-1) connectionTimeout=180 #long,default(180) purgePolicy=FailingConnectionOnly #ENUM(EntirePool|FailingConnectionOnly),default(FailingConnectionOnly) surgeCreationInterval=0 #integer,default(0) numberOfUnsharedPoolPartitions=0 #integer,default(0) stuckTime=0 #integer,default(0) agedTimeout=0 #long,default(0) reapTime=180 #long,default(180) testConnection=false #boolean,default(false) numberOfSharedPoolPartitions=0 #integer,default(0) freePoolDistributionTableSize=0 #integer,default(0) numberOfFreePoolPartitions=0 #integer,default(0) EnvironmentVariablesSection # #Environment Variables cellName=WASCell06
- applyConfigProperties コマンドを実行して、MQTopicConnectionFactory 構成を作成します。
applyConfigProperties コマンドを実行すると、構成にプロパティー・ファイルが適用されます。以下の Jython の例では、オプションの -reportFileName パラメーターによって report.txt という名前のレポートが作成されます。
AdminTask.applyConfigProperties(['-propertiesFileName myObjectType.props -reportFileName report.txt '])
- MQTopicConnectionFactory オブジェクトのプロパティー・ファイルを作成します。
- 既存の IBM MQ トピック接続ファクトリーを変更します。
- 変更する IBM MQ トピック接続ファクトリーのプロパティー・ファイルを取得します。
extractConfigProperties コマンドを使用して、MQTopicConnectionFactory のプロパティー・ファイルを抽出することができます。
- エディターでプロパティー・ファイルを開き、必要に応じてプロパティーを変更します。
プロパティー・ファイル内の環境変数が、ご使用のシステムと一致していることを確認してください。
- applyConfigProperties コマンドを実行します。
- 変更する IBM MQ トピック接続ファクトリーのプロパティー・ファイルを取得します。
- IBM MQ トピック接続ファクトリーがもう必要ない場合には、IBM MQ トピック接続ファクトリー・オブジェクト全体を削除することができます。
オブジェクト全体を削除する場合は、プロパティー・ファイルのヘッダー・セクションに DELETE=true を指定し、deleteConfigProperties コマンドを実行します。以下に例を示します。
AdminTask.deleteConfigProperties('[-propertiesFileName myObjectType.props -reportFileName report.txt]')
タスクの結果
プロパティー・ファイルを使用して、IBM MQ トピック接続ファクトリーを構成および管理することができます。
次のタスク
構成の変更を保存します。


http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=txml_config_prop_mqtopic_cf
ファイル名:txml_config_prop_mqtopic_cf.html