On 23 April 2010 16:24, Rajith Attapattu <[email protected]> wrote:
> Andrew,
>
> Sorry about the late reply. I've been a bit swamped the past 2 weeks.
>
> On Fri, Apr 16, 2010 at 5:29 AM, Andrew Kennedy 
> <[email protected]> wrote:
>> at the moment i am going to simply port the C++ file format to Java,
>> and access it from the existing XML configuration via a link to a
>> separate file, but i think the ACLs should also be expressible as a
>> pure XML configuration, to be documented later.
>
> I think for all intents and purposes we should only have a single file format.
> I think we debated this point and agreed on the current file format.
> It's not just the c++ file format, but the acl file format for Qpid as well.
>
> Also I'd question the value of having an XML based format.
> Is there a specific reason for this?

as for an xml file format for ACLs, i assumed that this wasreallyjust
a standard requirement for enterprise Java products in this space, and
is expected.  also, if we create an XSD schema then it makes it easy
for administrators to create ACLs using a validating XML editor.

the XML configuration used for the rest of the java broker would make
it easy to include this extra ACL data in the main config file or in
the virtualhosts file, as needed. as it stands, the internal
representation of ACLs can be mapped to from any format, and it is
also possible to save a modified or edited ACL configuration as
whatever format is convenient.

it would be fairly trivial to implement this in a straightforward
mapping of the plain text file (see access.xml file contents below)

<acl permission="ALLOW-LOG" identity="adk" operation="BIND" object="EXCHANGE">
    <properties>
        <property key="routingKey" value="adk.*" />
        <property key="name" value="amq.direct" />
    </properties>
</acl>

is the XML equivalent opf the following:

ALLOW-LOG adk BIND EXCHANGE routingKey=adk.* name=amq.direct

adk.
-- 
-- andrew d kennedy ? edinburgh : +44 7941 197 134

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to