前のトピック: メッセージ キュー ユーザの作成次のトピック: メッセージ キューの通信設定の変更


tibco-jms-ds.xml ファイルでのアカウントの変更

JNDI 接続アカウントを変更する際は、tibco-jms-ds.xml ファイル内のアカウントを変更します。

tibco-jms-ds.xml ファイルでアカウントを変更する方法

  1. JBoss アプリケーション サーバが停止していない場合は、停止します。
  2. 以下のディレクトリに移動します(JBoss_home は、JBoss をインストールしたディレクトリです)。
    JBoss_home/server/default/deploy/jms
    
  3. tibco-jms-ds.xml ファイルをテキスト エディタで開きます。
  4. 以下のパラメータの終わりでアカウント名を変更します。
    java.naming.security.principal=
    
  5. ファイルを保存して閉じます。

例: tibco-jms-ds.xml ファイルでアカウント名を変更

tibco-jms-ds.xml ファイルの以下のスニペットは、変更された JNDI 接続アカウントを示します。 アカウントの名前は example になります。

<!-- The JMS provider loader -->
	<mbean code="org.jboss.jms.jndi.JMSProviderLoader"
	name=":service=JMSProviderLoader,name=TibjmsProvider">
		<attribute name="ProviderName">TIBCOJMSProvider</attribute>
		<attribute name="ProviderAdapterClass">
		org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
		<attribute name="FactoryRef">SSLXAQueueConnectionFactory</attribute>
		<attribute name="QueueFactoryRef">SSLXAQueueConnectionFactory</attribute>
		<attribute name="TopicFactoryRef">SSLXATopicConnectionFactory</attribute>		
		<attribute name="Properties">
			java.naming.security.principal=example
			java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialContextFactory
			java.naming.provider.url=tibjmsnaming://localhost:7243
			java.naming.factory.url.pkgs=com.tibco.tibjms.naming
			com.tibco.tibjms.naming.security_protocol=ssl
			com.tibco.tibjms.naming.ssl_enable_verify_host=false		
		</attribute>  
	</mbean>