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,
Raymond
________________________________________________________________ 
Raymond Feng
[email protected]
Apache Tuscany PMC member and committer: tuscany.apache.org
Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
Personal Web Site: www.enjoyjava.com
________________________________________________________________

On Oct 6, 2010, at 8:52 AM, Jonathan Giddy wrote:

> We are attempting to create an SCA service that returns SDO objects to
> a JSONRPC binding. We get the same "circular references" error as in
> this 2007 email:
> http://mail-archives.apache.org/mod_mbox/tuscany-dev/200706.mbox/%[email protected]%3e
> 
> A solution is proposed in
> http://mail-archives.apache.org/mod_mbox/tuscany-dev/200706.mbox/%[email protected]%3e
> - the URL in this email has moved to
> http://svn.apache.org/repos/asf/tuscany/sandbox/old/contrib/
> 
> The JSON data binding and XSDStream2JSON transformer code from this
> directory now appear to be in the correct place in the SCA code:
> http://svn.apache.org/repos/asf/tuscany/sca-java-1.x/trunk/modules/databinding-json/src/main/java/org/apache/tuscany/sca/databinding/json/
> 
> However, we still get the "circular references" error, as though the
> code was not there.
> 
> The PullTransformer metadata file contains the registrations for these
> conversions:
> http://svn.apache.org/repos/asf/tuscany/sca-java-1.x/trunk/modules/databinding-json/src/main/resources/META-INF/services/org.apache.tuscany.sca.databinding.PullTransformer
> 
> However, most of the registration lines in this file include the
> clause "public=false". Does this affect the visibility of the
> transformations in the databinding graph? Could this be the reason for
> the error message we are getting?
> 
> Is it possible to use SDO and JSONRPC together?
> 
> Thanks,
> Jon.

Reply via email to