Hi,

authentication plugin is used even if you're using vm transport. To connect
you need to pass username and password to you connection. This is needed as
your clients can be later authorized for access to different destinations.

Regards
--
Dejan Bosanac
----------------------
Red Hat, Inc.
FuseSource is now part of Red Hat
dbosa...@redhat.com
Twitter: @dejanb
Blog: http://sensatic.net
ActiveMQ in Action: http://www.manning.com/snyder/


On Sat, Jun 29, 2013 at 11:50 AM, loganathan <logu.i...@gmail.com> wrote:

> i have added the following code in context_activemq.xml for
> simpleauthentication for vm brokerurl.As i am new to activemq i don't know
> exactly is simpleauthentication is required for vm brokerurl?if its
> required
> means how i can acheived through simpleauthentication technique in
> activemq?Is anyone help for this problem would be highly appreciated.
>
> <bean id ="amqConnectionFactory"
>                 class="org.apache.activemq.ActiveMQConnectionFactory">
>                 <property name="brokerURL"
>                         value="vm://brokerexample" />
>                         <property name="userName" value="publisher" />
>                 <property name="password" value="password" />
>         </bean>
>
> <amq:broker start="true" persistent="true"
>                 brokerName="brokerexample"
>                 deleteAllMessagesOnStartup="false" >
>
> <amq:transportConnectors>
>                         <amq:transportConnector name="tcp"
>                                 uri="vm://brokerexample"/>
>                 </amq:transportConnectors>
>
> <amq:plugins>
>                          <amq:simpleAuthenticationPlugin>
>                                 <amq:users>
>                                         <amq:authenticationUser
> id="example" username="publisher"
> password="password" groups="users,admins" />
>                                         </amq:users>
>                                 </amq:simpleAuthenticationPlugin>
>     </amq:plugins>
>         </amq:broker>
> </beans>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Is-simpleauthentication-required-for-vm-broker-url-in-activemq-tp4668721.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Reply via email to