activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: secure a queue in Activemq
Date Mon, 04 Mar 2013 17:25:23 GMT
You'll want to set the un/pw on the connection factory. If you're using
spring, it's a property of the connection-factory bean


On Fri, Mar 1, 2013 at 5:47 PM, Vandy <vandana1407@gmail.com> wrote:

> Hi
> I am using ActiveMQ 5.8.0
> I have configured a queue and want to secure the publishers that are
> sending
> messages to queue and consumers who can get messages from queue.
>
> I did following setting in my activemq.xml
>
>                 <plugins>
>                     <simpleAuthenticationPlugin>
>                         <users>
>                                 <authenticationUser username="system"
> password="liverpoolProd"
>                                         groups="users,admins"/>
>                                  <authenticationUser
> username="clickloggerPublisher" password="cambridgeProd"
>
> groups="clickloggerPublisherGrp,users"/>
>                                   <authenticationUser
> username="clickloggerConsumer"
> password="londonProd"
>
> groups="clickloggerConsumerGrp,users"/>
>
>
>                         </users>
>                     </simpleAuthenticationPlugin>
>
>
>
>                   <authorizationPlugin>
>                     <map>
>                       <authorizationMap>
>                         <authorizationEntries>
>                             <authorizationEntry queue=">" read="admins"
> write="admins" admin="admins" />
>
>                            <authorizationEntry queue="QUEUE.ClickloggerQ"
>
> read="clickloggerConsumerGrp"
> write="clickloggerPublisherGrp" admin="admin"/>
>
>                             <authorizationEntry topic=">" read="admins"
> write="admins" admin="admins" />
>
>                             <authorizationEntry queue="ActiveMQ.DLQ"
> read="users,
> clickloggerDeadLetterQueueSub" write="users, clickloggerDeadLetterQueueSub"
> admin="users,admin"/>
>                         </authorizationEntries>
>
>
>                         <tempDestinationAuthorizationEntry>
>                           <tempDestinationAuthorizationEntry
> read="tempDestinationAdmins" write="tempDestinationAdmins"
> admin="tempDestinationAdmins"/>
>                        </tempDestinationAuthorizationEntry>
>                       </authorizationMap>
>                     </map>
>                   </authorizationPlugin>
>         </plugins>
>
> I am not sure where to provide the username password in my spring
> application for securing access to queue.
>
> Please guide me.
> Thanks
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/secure-a-queue-in-Activemq-tp4664312.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message