On 6 October 2010 17:30, Raymond Feng <[email protected]> wrote: > Hi, > A few pointers: > 1) Can you try Tuscany 2.x? We have the databinding-json module > at https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/modules/databinding-json/. > We now use jackson as the underlying stack to handle JSON. I'm not very sure > if it can deal with circular dependency. > 2) public=false means the transformer cannot be used as the intermediate hop > as it cannot support full round-trip of the data transformation.
Thanks for the advice. 1) We tried to the upgrade to 2.0 by trivially changing 1.6 to 2.0-M5 in our POM file, but hit a problem. We will look at that option in more detail later when we have time. In the meantime, we have worked around the problem by implementing a JAXB proxy component that accesses the SDO service and provides the JSON service (similar to the ubiquitous data binding example from Chapter 9 on Tuscany SCA in Action). 2) OK, so that means the transformation would be attempting to use the configuration: org.apache.tuscany.sca.databinding.json.JavaBean2JSON;source=commonj.sdo.DataObject,target=JSON,weight=80000,public=false rather than the "shorter" path: org.apache.tuscany.sca.databinding.sdo.DataObject2XMLStreamReader;source=commonj.sdo.DataObject,target=javax.xml.stream.XMLStreamReader,weight=490 org.apache.tuscany.sca.databinding.json.XMLStreamReader2JSON;source=javax.xml.stream.XMLStreamReader,target=JSON,weight=5000,public=false Is there any way to view the databinding graph? Jon.
