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/java/example/EmbeddedBroker.java

You then periodically poll your database for all the ACL rules and update
the configuration when the the ACL rules.  Apollo is smart enough to apply
configuration changes like ACL rule updates without disrupting services.

On Fri, Aug 10, 2012 at 4:50 AM, LiANG ZHENJiNG <liangzhenj...@gmail.com>wrote:

> 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 <hi...@hiramchirino.com> 写道:
>
> > add:
> >
> > <access_rule allow="12345" action="receive consume" kind="queue"
> id="12345"/>
> >
> >
> > to your xml config.
> >
> > On Thu, Aug 9, 2012 at 8:48 AM, 梁振警 <liangzhenj...@gmail.com> 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
> >>
> >>
> >
> >
> > --
> >
> > **
> >
> > *Hiram Chirino*
> >
> > *Software Fellow | FuseSource Corp.*
> >
> > *chir...@fusesource.com | fusesource.com*
> >
> > *skype: hiramchirino | twitter: @hiramchirino<
> http://twitter.com/hiramchirino>
> > *
> >
> > *blog: Hiram Chirino's Bit Mojo <http://hiramchirino.com/blog/>*
> >
> > *
> > *
> >
> > *
> > *
>



-- 

**

*Hiram Chirino*

*Software Fellow | FuseSource Corp.*

*chir...@fusesource.com | fusesource.com*

*skype: hiramchirino | twitter: @hiramchirino<http://twitter.com/hiramchirino>
*

*blog: Hiram Chirino's Bit Mojo <http://hiramchirino.com/blog/>*

*
*

*
*

Reply via email to