camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-4930) Provide a Data Format to convert XML <-> JSON directly (json-lib)
Date Thu, 05 Apr 2012 16:50:25 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247358#comment-13247358
] 

Claus Ibsen commented on CAMEL-4930:
------------------------------------

When you have initialization logic etc. Then use the doStart/doStop methods from ServiceSupport.
Alternative if you cannot extend ServiceSupport, them implement Service and use the start|stop
methods. I committed a fix to trunk.

This is the proper way with Camel to have start/stop logic executed. As the previous logic
have issues with concurrency when multiple threads invoke the marshal / unmarshal method.
                
> Provide a Data Format to convert XML <-> JSON directly (json-lib)
> -----------------------------------------------------------------
>
>                 Key: CAMEL-4930
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4930
>             Project: Camel
>          Issue Type: New Feature
>    Affects Versions: 2.9.0
>            Reporter: Raul Kripalani
>            Assignee: Raul Kripalani
>             Fix For: 2.10.0
>
>         Attachments: camel-xmljson-full.diff
>
>
> Currently if one wants to convert from XML to JSON, the payload must first be serialised
to an object / POJO.
> The proposal is to create a new Data Format called camel-xmljson which uses the json-lib
library to perform the conversion directly: http://json-lib.sourceforge.net/. This library
is Apache-licensed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message