That works too, because the conn factory under the covers isn't set until
its needed later in the life cycle. When the conn fsctory eventually gets
created, it will pull in those config settings for un/pw. The static method
was more of a convenience method for a simple conn factory with no extra
config. Glad u got it working...

On Friday, July 12, 2013, Mike Pone wrote:

> That is good information.  I discovered that I can make it work if I change
> the constructor to
>
> final ActiveMQComponent component = new ActiveMQComponent(camelContext);
> component.setBrokerURL(brokerUrl);
> component.setUserName(userName);
> component.setPassword(password);
>
> I am not sure why this makes a difference.
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/problems-setting-username-and-password-on-the-ActiveMQComponent-using-Java-tp4669091p4669241.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>


-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Reply via email to