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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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/

Reply via email to