Authenticating To 3rd Party JMS Provider Probem
joshlam May 28, 2004 5:29 PMI got jBoss 3.2.1 to connect to TIBCO JMS without authentication but I have problems trying to get it working with authentication. I am getting the following error while starting jBoss:
13:42:18,296 INFO [DLQHandler] Creating
13:42:18,453 ERROR [DLQHandler] Initialization failed
javax.jms.JMSException: Error creating the dlq connection: Not permitted: invalid name or password
I read the FAQ and here's my js-ds.xml file:
<?xml version="1.0" encoding="UTF-8"?> <connection-factories> <!-- The JMS provider loader --> <mbean code="org.jboss.jms.jndi.JMSProviderLoader" name="jboss.mq:service=JMSProviderLoader,name=TibjmsProvider"> <attribute name="ProviderName">TIBCOJMSProvider</attribute> <attribute name="ProviderAdapterClass">com.tibco.tibjms.appserver.jboss.JBossAdapter</attribute> <attribute name="ProviderUrl">tibjmsnaming://localhost:7222</attribute> <attribute name="QueueFactoryRef">XAQueueConnectionFactory</attribute> <attribute name="TopicFactoryRef">XATopicConnectionFactory</attribute> </mbean> <!-- Redirect QueueConnectionFactory to TIBCO Enterprise for JMS --> <mbean code="org.jboss.naming.NamingAlias" name="DefaultDomain:service=NamingAlias,fromName=QueueConnectionFactory"> <attribute name="ToName">tibjmsnaming://localhost:7222/XAQueueConnectionFactory</attribute> <attribute name="FromName">QueueConnectionFactory</attribute> </mbean> <!-- The server session pool for Message Driven Beans --> <mbean code="org.jboss.jms.asf.ServerSessionPoolLoader" name="jboss.mq:service=ServerSessionPoolMBean,name=StdJMSPool"> <depends optional-attribute-name="XidFactory">jboss:service=XidFactory</depends> <attribute name="PoolName">StdJMSPool</attribute> <attribute name="PoolFactoryClass">org.jboss.jms.asf.StdServerSessionPoolFactory</attribute> </mbean> <tx-connection-factory> <jndi-name>JmsXA</jndi-name> <xa-transaction/> <adapter-display-name>JMS Adapter</adapter-display-name> <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Queue</config-property> <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/TIBCOJMSProvider</config-property> <security-domain-and-application>JmsXARealm</security-domain-and-application> </tx-connection-factory> <application-policy name = "JmsXARealm"> <authentication> <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required"> <module-option name = "principal">dude</module-option> <module-option name = "userName">dude</module-option> <module-option name = "password">dude</module-option> <module-option name = "managedConnectionFactoryName">jboss.jca:service=TxCM,name=JmsXA</module-option> </login-module> </authentication> </application-policy> </connection-factories>
Please note that those in red are not needed if authentication is not turned on in the Tibco JMS. Those in green are what the Tibco documentation stipulated for integration with jBoss.
Would appreciate any help.
Thanks.
--
Josh