On Fri, 16 Aug 2002, Remy Maucherat wrote:

> I will bootstrap the new configuration code by writing a DOM based JNDI 
> directory context to provide some compatibility with the current server.xml.

Great. 

I am not very sure if we should spend too much time preserving the current
server.xml. If it can be done without too many restrictions in the naming
structure - great. 

I was thinking to look at one of the existing file-based stores ( XML, 
etc).

What's important is to have a well-organised naming hierarchy - the one
used for mbeans is a bit confusing. 


> I'll start experimenting with the JNDI naming conventions we'll be using 
> as I implement the context (obviously, that will happen in the test 
> program I'll write).

The naming convenitons are the critical part. Good luck :-)

 
> I'd like to advocate mirroring all changes to the configuration to the 
> backend immediately (without the need for a commit as it is done now).
> 
> The initial experimental implementation will use:
> - a DOM tree to mirror the XML, and that easily maps to the  structure
> - algorithms wise, it is likely to look like the WARDirContext
> - I may use JDOM, as some DOM to XML serialization is needed, and isn't 
> provided by JAXP
> 
> Note: The only reason why I want to use something like JDOM is for the 
> serialization. If someone has ideas about how to do it without JDOM (I'm 
> fine with using straight DOM), let me know (I'd like to avoid writing my 
> own serialization code if possible, although it could be useful to do so 
> for performance reasons).

Yes, just use an identity Transformer. It's quite easy - you make a 
trasnformation between a DOMSource and a FileDestination.
( make sure you turn on indentation !)



Costin 




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

Reply via email to