activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jackygurui <>
Subject Re: How to specify username and password for MessageListenerServlet
Date Sat, 13 Mar 2010 11:44:59 GMT

I've solved it by using spring's ServletContextAttributeExporter

    <amq:connectionFactory id="amqConnectionFactory"
        <property name="userName" value="admin" />
        <property name="password" value="password" />

        <property name="attributes">
                <entry key="org.apache.activemq.connectionFactory">
                    <ref bean="amqConnectionFactory"/>

jackygurui wrote:
> I understand that MessageListenerServlet uses WebClient to send/receive
> messages however I could not able to find out how to specify
> username/password for the broker to send message. Someone has mentioned
> here exactly two years ago, he only pointed out that this can be done
> though org.apache.activemq.connectionFactory property, and he did not
> provide any code.
> I am wondering if there is a way to configure
> org.apache.activemq.connectionFactory property to specify
> username/password in the web.xml or somewhere.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message