Re: Apollo: Custom ACL Module

2012-08-13 Thread Hiram Chirino
Well, we love patches! If you want to implement a pluggable interface to the ACL bits please do so and send us a patch. On Mon, Aug 13, 2012 at 10:48 AM, 梁振警 wrote: > That might work, but I think it just a "dirty" workaround. > > In my system, many clients connect to the server and subscribe a

Re: Apollo: Custom ACL Module

2012-08-13 Thread 梁振警
That might work, but I think it just a "dirty" workaround. In my system, many clients connect to the server and subscribe a queue, and I want to restricted them CAN ONLY subscribe to a queue belong to themselves. If not, a misbehaved client may subscribe to a destination like "/queue/**" and "

Re: Apollo: Custom ACL Module

2012-08-10 Thread Hiram Chirino
Well, you could also just run a process which writes a new apollo.xml file with the ACL rules queried from the DB periodically but then your updating your disk constantly which is not as ideal. On Fri, Aug 10, 2012 at 8:36 AM, Hiram Chirino wrote: > The one way to you can do it today is to start

Re: Apollo: Custom ACL Module

2012-08-10 Thread Hiram Chirino
The one way to you can do it today is to start up apollo as embedded broker so that you can programatic control of it's configurations. You can find an example of this at: https://github.com/apache/activemq-apollo/blob/trunk/apollo-distro/src/main/release/examples/java-embedded-broker/src/main/ja

Re: Apollo: Custom ACL Module

2012-08-10 Thread LiANG ZHENJiNG
i know i can i that. but what i looking for is a Dynamic ACL solution, that means i can decide who can access a resource base on some settings saved on my db. is there any way to do this? 在 2012-8-10,4:09,Hiram Chirino 写道: > add: > > > > > to your xml config. > > On Thu, Aug 9, 2012 at 8:48 AM

Re: Apollo: Custom ACL Module

2012-08-09 Thread Hiram Chirino
add: to your xml config. On Thu, Aug 9, 2012 at 8:48 AM, 梁振警 wrote: > Hi all, > > Is there any way to control wether a user can subscribe to a topic/queue? > > for example, I want user (id=12345) can only subscribe to /queue/12345, > is there any to do this? > > -- > Zhenjing Liang > > -

Re: Apollo: Custom ACL Module

2012-08-09 Thread ceposta
Yes, you can. Specify an as mentioned here: http://activemq.apache.org/apollo/documentation/user-manual.html#Authorization Use the "id" attribute to specify your destination, and the "kind" attribute to specify the type of destination. See the "Send and create authorized via id_regex" unit tes

Apollo: Custom ACL Module

2012-08-09 Thread 梁振警
Hi all, Is there any way to control wether a user can subscribe to a topic/queue? for example, I want user (id=12345) can only subscribe to /queue/12345, is there any to do this? -- Zhenjing Liang