geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <>
Subject Re: Shifting from xmlbean to JAXB in PlanCreator
Date Wed, 23 Jul 2008 17:15:06 GMT

On Jul 23, 2008, at 4:24 AM, Shrey Banga wrote:

>     I had opened a JIRA (GERONIMO-4197) which is intended to shift  
> from using xmlbean classes to JAXB classes for making the task of  
> PlanCreator easier by exposing the JAXB classes directly. I've been  
> able to use this approach to maintain an object of the JAXB class  
> 'Application' with javascript and use it to call a function through  
> DWR that marshalls it into the deployment plan. Similarly, I'm able  
> to unmarshal the plan if it is modified by the user and reflect  
> those changes in the PlanCreator.
>     The reason to shift from xmlbean to JAXB in this case was the  
> way JAXB classes are organized- by adding just a few lines to  
> dwr.xml, I can expose all those classes and use them to maintain a  
> copy of the Application object. The same would have been a lot more  
> tedious to configure and maintain in xmlbean, considering each class  
> provides more functions and factory classes than what is needed by  
> DWR. Earlier, this was being done by creating wrapper classes to the  
> xmlbean which were becoming unmanagable and would need heavy  
> maintenance with changes in the schema. I did have to modify some  
> JAXB classes to have setters where it had only getters that returned  
> live Lists to make it work with the DWR BeanConverter.
>     So now this shift will help reduce a lot of bloated code from  
> PlanCreator and improve maintainability. Since GEP already uses  
> these classes we can shift the jar to geronimo and add a dependency  
> in GEP and PlanCreator for the same.
> Opinions?

I think this is great.  Do you have any interest in working on (or  
just helping with) rewriting the deployment system to use the jaxb  
classes?  That would be a lot more work than the plan creator and get  
much more into geronimo internals but would have similar benefits (IMO)

david jencks

> -- 
> Shrey Banga
> Bachelor of Technology, III year
> Department of Electrical Engineering
> Indian Institute of Technology Roorkee

View raw message