geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Mulder <>
Subject Re: [jira] Updated: (GERONIMO-96) JSR88 - JavaBean for ra.xml tags
Date Mon, 29 Sep 2003 00:03:16 GMT
On Mon, 29 Sep 2003, gianny DAMOUR wrote:
> It seems that the JavaBean mirroring the DD tags have been manually 
> generated. I agree on the fact that it allows a flexible approach, that it 
> avoids code duplication et cetera. However, I still believe that it was a 
> waste of time for most of it: from the schema, it could have been "blasting 
> fast" to create all these JB. From these JB, which are not really handy due 
> to the lack of inheritance (?), it could have been easy to implement a more 
> developper friendly version by using composition. As a matter of fact, this 
> idea was proposed and I am still trying to sort out why inheritance has been 
> prefered over composition.
> It is in my understanding that different proposals have been submitted and 
> that the best one has been choosen. It is also in my understanding that I 
> should have voice my concern at this moment instead of doing it now.
> However, what was not right in the following approach:
> XML Schema -- (generation tool a la XMLBean) --> (Dumb) JB -- (composition) 
> --> (our clever) JB (for local deployment or for massive cluster 
> deployment).
> In the other direction, JB to XML:
> (our clever) JB -- (delegation) --> auto-generated JB -- (provided by the 
> generation tool) --> XML

	The holdup is that none of the "auto-generation" solutions seemed
great.  Both Castor and XMLBeans had trouble with our default XML parser
configuration, IIRC.  We may have been able to get one of them to work by
overriding the JVM XML impl, but IMHO that's bending over too far to
accomodate a 3rd party library.  Also, XMLBeans was not in Apache yet (is
it now?), and has quite a bloated JAR (~3MB).  Digester and friends could
be used, but then we're still writing our own beans.

	Personally, I would like to switch to XMLBeans, as soon as:

 - The source lives in Apache
 - We take advantage of that to reduce the JAR size somehow
 - It runs 100% with any JAXP-compliant parser, including the one in J2SE 

> ...
> I agree. This is a misconception or a semantic issue. FYI, I read the 
> specifications of JSR-88 this week-end, so I should be up-to-date on this 
> front. Yet, thanks for that.

	Well, now there's a Wiki page; hopefully it will help.


View raw message