On Fri, Mar 19, 2010 at 6:34 PM, Blue Diamond <[email protected]> wrote:

> Caused by: javax.jms.JMSException: User name or password is invalid.
>
>       at
> org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)
>
>       at
> org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1244)
>
>       at
> org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1339)
>
>       at
> org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:298)
>
>       at
> org.apache.tuscany.sca.binding.jms.provider.JMSResourceFactoryImpl.createSession(JMSResourceFactoryImpl.java:86)
>
>       at
> org.apache.tuscany.sca.host.jms.asf.ASFListener.registerListerner(ASFListener.java:100)
>
>       at
> org.apache.tuscany.sca.host.jms.asf.ASFListener.start(ASFListener.java:76)
>
>       ... 12 more

Having looked at the source I don't think
JMSResourceFactoryImpl.createSession() supports username and password
properties. I'd say no properties are supported at all.

You need to register the factory resource under a JNDI name and while
registering provide additional properties like username and password.
That's the only way I could think of looking at the sources. So I
suggest that you place the properties within the queue definition not
the connection factory.

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://jaceklaskowski.pl
Kapituła Javarsovia 2010 - http://javarsovia.pl

Reply via email to