You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Hett <he...@gmail.com> on 2013/03/04 16:50:24 UTC
How to create read only topic?
Hi,
how I to create read only for all users websocket topiK? I a need for write
only from my PHP service.
Sorry for my english.
--
View this message in context: http://activemq.2283324.n4.nabble.com/How-to-create-read-only-topic-tp4664354.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: How to create read only topic?
Posted by Hett <he...@gmail.com>.
I coping from tutorial config section:
<plugins>
<simpleAuthenticationPlugin anonymousAccessAllowed="true">
<users>
<authenticationUser username="system" password="manager"
groups="users,admins"/>
<authenticationUser username="user" password="password"
groups="users"/>
<authenticationUser username="guest" password="password"
groups="guests"/>
</users>
</simpleAuthenticationPlugin>
<authorizationPlugin>
<map>
<authorizationMap>
<authorizationEntries>
<authorizationEntry queue="TEST.Q" read="users" write="users"
admin="users" />
<authorizationEntry topic="ActiveMQ.Advisory.>" read="all"
write="all" admin="all"/>
</authorizationEntries>
<tempDestinationAuthorizationEntry>
<tempDestinationAuthorizationEntry read="admin" write="admin"
admin="admin"/>
</tempDestinationAuthorizationEntry>
</authorizationMap>
</map>
</authorizationPlugin>
</plugins>
tabish121@gmail.com wrote
> and on trying to connect:
>
> $stomp = new Stomp('tcp://localhost:61613/stomp');
>
> $stomp->connect('system', 'manager');
> $stomp->subscribe('/topic/test');
>
> i have exception:
>
> Fatal error: Uncaught exception 'StompException' with message 'User system
> is not authorized to create: topic://ActiveMQ.Advisory.Connection'
>
> what am I doing wrong?
>
>
>
> On 03/04/2013 10:50 AM, Hett wrote:
>> Hi,
>> how I to create read only for all users websocket topiK? I a need for
>> write
>> only from my PHP service.
>> Sorry for my english.
>>
>>
>>
>> --
>> View this message in context:
>> http://activemq.2283324.n4.nabble.com/How-to-create-read-only-topic-tp4664354.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>
> Use the security model to limit what a user can do, see:
> http://activemq.apache.org/security.html
>
> --
> Tim Bish
> Sr Software Engineer | RedHat Inc.
> tim.bish@
> | www.fusesource.com | www.redhat.com
> skype: tabish121 | twitter: @tabish121
> blog: http://timbish.blogspot.com/
--
View this message in context: http://activemq.2283324.n4.nabble.com/How-to-create-read-only-topic-tp4664354p4664364.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: How to create read only topic?
Posted by Hett <he...@gmail.com>.
what we need, thank you!
--
View this message in context: http://activemq.2283324.n4.nabble.com/How-to-create-read-only-topic-tp4664354p4664360.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: How to create read only topic?
Posted by Timothy Bish <ta...@gmail.com>.
On 03/04/2013 10:50 AM, Hett wrote:
> Hi,
> how I to create read only for all users websocket topiK? I a need for write
> only from my PHP service.
> Sorry for my english.
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/How-to-create-read-only-topic-tp4664354.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Use the security model to limit what a user can do, see:
http://activemq.apache.org/security.html
--
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/