camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul Kripalani <r...@fusesource.com>
Subject camel-xmljson data format submitted (CAMEL-4930)
Date Tue, 03 Apr 2012 15:48:05 GMT
Hi everyone,

I've just submitted the camel-xmljson data format for inclusion in Apache.
Please see patch on https://issues.apache.org/jira/browse/CAMEL-4930.

This data format utilises the json-lib library (
http://json-lib.sourceforge.net/), and more particularly its XMLSerializer,
to support *direct* conversions from JSON to XML and viceversa. I believe
this capability was missing in Camel, since the former route to achieve
this was JSON -> Java objects -> XML. With this data format, the middle
step is dropped, so hopefully this transformation will be more efficient
overall ;)

I've found this component to be extremely useful in conjunction with
MongoDB (camel-mongodb) and any other JSON-based databases or technologies.

Many aspects of the XML -> JSON -> XML transformation can be customised, so
I have exposed most (if not all) the options that Json-lib offers as
options in this data format, both in the Spring DSL and the Java DSL. I
haven't had the chance to add Blueprint nor Scala support.

Hope the Camel riders enjoy it! Let me know if something needs to be
changed!

Thanks,

*Raúl Kripalani*
Principal Consultant | FuseSource Corp.
raul@fusesource.com | fusesource.com <http://www.fusesource.com/> skype:
raul.fuse | twitter: @raulvk <http://twitter.com/raulvk>,
@fusenews<http://twitter.com/fusenews>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message