Raymond Feng wrote:
Hi,

I'm on the same boat as Mike and you. The discussion was about how can we simplify the data transformation of a subset of POJOs following a strict pattern without starting from a formal model such as XSD. I don't know any JAXB implementation can handle a POJO without JAXB annotations. If there is one with reasonable support of default Java/XML mapping (no XSD or annotations are required), I would be happy to use it.

Thanks,
Raymond


I think I can guess where that discussion is going so let me try to bring a different perspective.

The discussion started from me trying to put together a simple online store application. My application has a catalog and a shopping cart.

Both contain Item business objects (representing fruits and vegetables). I need to flow these Items through local calls, ATOMPub, JSON-RPC and SOAP.

This online store application is developed as a tutorial and in the initial steps I write Item as a simple JavaBean.

I don't have any strong preference for a particular databinding or another, but could you guys please help me understand how I go from Item to something that actually works in the complete application with the bindings I need?

I'm open to change Item, to write some transformation/mediation code if there's really no way to flow the same Item through XML and non-XML, or whatever other creative solution you find, as long as it's reasonably simple (in other words this little data business doesn't become the most complicated part of the application).

The current code for the online store is there:
https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/tutorial/assets
https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/tutorial/store

Thanks.
--
Jean-Sebastien

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

Reply via email to