Use of the guest/guest user-name/password combination should be removed from the JCA adapter as it is no longer favored for default security requirements. In it's place, we are using the following connection URL: amqp://anonymous:@client/test?brokerlist='tcp://localhost:5672?sasl_mechs='ANONYMOUS'' Similarly, the ra.xml file included the properties 'DefaultUserName, DefaultPassword' these should be renamed to UserName, Password to avoid confusion that we do indeed accept a default user name and password as this is no longer correct.
User and password are optional fields in the url, so the replacement can be somewhat simpler: amqp://client/test?brokerlist='tcp://localhost:5672'?sasl_mechs='ANONYMOUS' Note that the ' are incorrect in the options in the previous comment.
Sorry, thinking more I'm not sure whether the sasl_mechs option attaches to the url as a whole or the specific tcp address so it might be: amqp://client/test?brokerlist='tcp://localhost:5672?sasl_mechs=\'ANONYMOUS\'' But I think you would need to escape the ' in the latter case.
amqp://client/test?brokerlist='tcp://localhost:5672'?sasl_mechs='ANONYMOUS'' Updated URL as per comment above.
This has been fixed in package qpid-java-jca-0.10-10
The configuration <mbean code="org.jboss.resource.deployment.AdminObject" name="qpid.factory:name=remoteConnectionFactory"> <attribute name="JNDIName">remoteConnectionFactory</attribute> <depends optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='qpid-ra.rar'</depends> <attribute name="Type">javax.jms.ConnectionFactory</attribute> <attribute name="Properties"> connectionURL=amqp://client/test?brokerlist='tcp://mrg01.mw.lab.eng.bos.redhat.com:5672'?sasl_mechs='ANONYMOUS'' </attribute> </mbean> throws an exception 2011-11-07 14:48:54,297 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController:419] (main) Error installing to Start: name=qpid.factory:name=remoteConnectionFactory state=Create mode=Manual requiredState=Installed javax.naming.NamingException: User information not found on url at index 7: amqp://client/test?brokerlist='tcp://mrg01.mw.lab.eng.bos.redhat.com:5672'?sasl_mechs='ANONYMOUS'' at org.apache.qpid.ra.admin.QpidConnectionFactoryProxy.getReference(QpidConnectionFactoryProxy.java:119) at org.jnp.interfaces.NamingContext.bind(NamingContext.java:632) at org.jnp.interfaces.NamingContext.bind(NamingContext.java:611) at javax.naming.InitialContext.bind(InitialContext.java:417) at org.jboss.util.naming.Util.bind(Util.java:105) at org.jboss.util.naming.Util.bind(Util.java:91) at org.jboss.resource.deployment.AdminObject.bind(AdminObject.java:162) at org.jboss.resource.deployment.AdminObject.startService(AdminObject.java:103) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
The connection URL should read: amqp://anonymous:@client/test?brokerlist='tcp://mrg01.mw.lab.eng.bos.redhat.com:5672'?sasl_mechs='ANONYMOUS'' Note the identity of anonymous.