looking into resteasy from jboss to replace my DWR Ajax calls.....

when using DWR I wrote a converter (those not familiar with DWR you need a
converter for different java types) to handle XmlBean objects when
marshalled as JSON.  XmlBean objects are interfaces which hides the
underlying implementation plus when talking JSON in the client I had to send
from the server a javascript name for each converted XmlBean.  Otherwise the
client just fires over JSON which could potentially stand for anything and
DWR had no idea which implementation to bind.

to make matters more complicated i have normalized the crap out of POJO
objects passed between client/server.  basically 2 classes: Element and
Relationship whereby elements have relationships.  Each Element can
represent a CI in a hierarchy of CIs built up in schemas whereby there is a
root CI (called Element) and all others extend the root's schema (making
descendant CI).  So when the Element Pojo is sent through DWR the property
holding the XmlObject can hold any descendant of the Element XmlBean CI.

want to easy off DWR and start using RestEasy.  but RestEasy doesn't do
interfaces (read
http://www.jboss.org/file-access/default/members/resteasy/freezone/docs/1.0.1.GA/userguide/html/Content_Marshalling_Providers.html#JAXB_INTERFACES)
except for using the hardcoded @XmlSeeAlso annotation.

thought about writing my own RestEasy provider to handle writes/reads but
unsure how to communicate the underlying implementation for XmlBeans?  this
problem isn't native to just RestEasy.  anytime somebody wants to use jax-ws
this unmarshaling/marshaling problem must pop up.

Jboss doesn't have a RestEasy forum yet so I thought i would post here.  Any
ideas?
-- 
View this message in context: 
http://www.nabble.com/Resteasy---transmitting-XmlBeans-in-general-tp25076300p25076300.html
Sent from the Xml Beans - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@xmlbeans.apache.org
For additional commands, e-mail: user-h...@xmlbeans.apache.org

Reply via email to