Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Is simpleauthentication required for vm broker url in activemq?

$
0
0
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>

Viewing all articles
Browse latest Browse all 5648

Trending Articles