activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sepand M" <sepa...@gmail.com>
Subject Re: File based AutorizationMap
Date Mon, 21 Aug 2006 17:45:04 GMT
Actually, a text based map would be redundant if there's an XML map
already in place.
I can't seem to find the XML map anywhere. Could you tell me where it is?

Thanks,
Sepand

On 8/21/06, James Strachan <james.strachan@gmail.com> wrote:
> Sounds good to me :). We've got the XML based one but by all means
> write a simple text based one instead.
>
> incidentally it might help to reduce the amount of code to reuse a
> properties file? e.g.
>
> queue://foo.bar = group1, group2
>
> the left hand side can be turned into an ActiveMQ destination using
> this helper method...
>
> http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apache/activemq/command/ActiveMQDestination.html#createDestination(java.lang.String,%20byte)
>
> Looking forward to your patches :)
>
>
> On 8/18/06, Sepand M <sepandm@gmail.com> wrote:
> > To take it a bit further, I'd like to create something like a
> > TextBasedAuthorizationMap and have most of the functionality in there.
> > This would allow for different back-ends (like a database) to be
> > attached.
> >
> > On 8/18/06, Sepand M <sepandm@gmail.com> wrote:
> > > Hi everyone,
> > >
> > > I've been looking through the code and have noticed that the only
> > > AuthorizationMaps are DefaultAuthorizationMap and
> > > SimpleAuthorizationMap. And neither of these allows for text-based
> > > configuration of access.
> > >
> > > I'm wondering if such a thing exists and if I should create one if it doesn't.
> > > I'm thinking the config file would be something like:
> > >
> > >
> > > Queue:>::group:admins
> > > Queue:USERS>::group:users
> > > Topic:>::group:admins
> > > ...
> > >
> > > where each line is an addition to the map and each line is made of:
> > > <Queue/Topic>:<destination name>::<group/user
> > > >:<group/user name>
> > >
> > > (the delimitor choice is open for debate)
> > >
> > > Anyone agree?
> > >
> >
>
>
> --
>
> James
> -------
> http://radio.weblogs.com/0112098/
>

Mime
View raw message