Previous Topic: Create a Message Queue UserNext Topic: Changing Message Queue Communication Settings


Change the Account in the tibco-jms-ds.xml File

You change the account in the tibco-jms-ds.xml file when you change the JNDI connection account.

To change the account in the tibco-jms-ds.xml file

  1. Stop JBoss Application Server if it is not already stopped.
  2. Navigate to the following directory, where JBoss_home is the directory in which you installed JBoss:
    JBoss_home/server/default/deploy/jms
    
  3. Open the tibco-jms-ds.xml file in a text-based editor.
  4. Change the account name at the end of the following parameter:
    java.naming.security.principal=
    
  5. Save and close the file.

Example: Change the Account Name in the tibco-jms-ds.xml File

This snippet of the tibco-jms-ds.xml file shows the changed JNDI connection account. The account is named 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>