Steve,

  <?xml version="1.0"?>
  <!DOCTYPE config [<!ENTITY testScript
                      SYSTEM "file:../apps/james/SAR-INF/testScript.xml">]>
  <config>
    &testScript;
  </config>

Although I like the approach that you appear to be taking, you might want to
consider that Avalon keeps the XML parser and all generated objects
in-memory for the lifetime of the application.  I haven't looked in their
code to see why; I am basing this upon what I see when using the heap
profiler.

If we are going to expand the size of config.xml, which your approach would
potentially explode, then we should try to get more memory efficient
handling from Avalon.

Another thing to consider is reconfiguration.  This approach would appear to
require reloading the entire configuration to change a script, at least with
a simplistic implementation.

By the way, is that file url being interpreted relative to the phoenix bin,
as implied by your example?

        --- Noel


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to