Feng Xue wrote > > Hi All, > > I have been trying to configure 2 brokers with JMS bridge, ssl and > authentication. > > The goal is to set up a broker "localServer" with JMS bridge that connects > to > another broker "remoteServer1". The JMS bridge configuration works fine if > local Broker > has no ssl and authentication. But if I add ssl and/or authentication > into the > localbroker, it always starts with error as shown at the end of the > message. > > <snip> > > ERROR JmsQueueConnector - Failed to initialize the > JMSConnector > javax.jms.JMSException: User name or password is invalid. > at > org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:46) > at > org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1177) >
I know this is an old thread but I found it searching for a solution to the same issue so perhaps someone else might benefit in the future. The solution I used for the authentication at least was to provide a localQueueConnectionFactory as well as an outboundQueueConnectionFactory. specifying localUsername and localPassword didn't work for me. Xml snippets: <jmsBridgeConnectors> <jmsQueueConnector outboundQueueConnectionFactory="#remoteFactory" localQueueConnectionFactory="#localFactory"> <inboundQueueBridges> <inboundQueueBridge inboundQueueName="queue.name" /> </inboundQueueBridges> </jmsQueueConnector> </jmsBridgeConnectors> <bean id="remoteFactory" class="org.apache.activemq.ActiveMQConnectionFactory"> <property name="userName" value="user" /> <property name="password" value="password" /> <property name="brokerURL" value="tcp://removeserver:40000" /> </bean> <bean id="localFactory" class="org.apache.activemq.ActiveMQConnectionFactory"> <property name="userName" value="user" /> <property name="password" value="password" /> <property name="brokerURL" value="tcp://localhost:40000" /> </bean> -- View this message in context: http://activemq.2283324.n4.nabble.com/JMS-Bridge-with-ssl-authentication-issue-tp2352052p4348062.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.