[CONF] Apache Camel: XStream (page edited)

2009-01-14 Thread confluence










Page Edited :
CAMEL :
XStream



 
XStream
has been edited by willem jiang
(Jan 14, 2009).
 

  Change summary:
  Added the discription of XMLInputFactory

 
 (View changes)
 

Content:
XStream

XStream is a Data Format which uses the XStream library to marshal and unmarshal Java objects to and from XML.


// lets turn Object messages into XML then send to MQSeries
from("activemq:My.Queue").
  marshal().xstream().
  to("mqseries:Another.Queue");


XMLOutputFactory and XMLInputFactory 
The XStream library|http://xstream.codehaus.org/] uses the javax.xml.stream.XMLOutputFactory and javax.xml.stream.XMLInputFactory,  you can control which implementation of this factory should be used.

The Factory is discovered using this algorithm:
1. Use the javax.xml.stream.XMLOutputFactory , javax.xml.stream.XMLInputFactory system property.
2. Use the lib/xml.stream.properties file in the JRE_HOME directory.
3. Use the Services API, if available, to determine the classname by looking in the META-INF/services/javax.xml.stream.XMLOutputFactory, META-INF/services/javax.xml.stream.XMLInputFactory  files in jars available to the JRE.
4. Use the platform default XMLOutputFactory,XMLInputFactoryinstance.












Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences








[CONF] Apache Camel: XStream (page edited)

2009-01-13 Thread confluence










Page Edited :
CAMEL :
XStream



 
XStream
has been edited by Claus Ibsen
(Jan 13, 2009).
 

 
 (View changes)
 

Content:
XStream

XStream is a Data Format which uses the XStream library to marshal and unmarshal Java objects to and from XML.


// lets turn Object messages into XML then send to MQSeries
from("activemq:My.Queue").
  marshal().xstream().
  to("mqseries:Another.Queue");


XMLOutputFactory
The XStream library|http://xstream.codehaus.org/] uses the javax.xml.stream.XMLOutputFactory and you can control which implementation of this factory should be used.

The Factory is discovered using this algorithm:
1. Use the javax.xml.stream.XMLOutputFactory system property.
2. Use the lib/xml.stream.properties file in the JRE_HOME directory.
3. Use the Services API, if available, to determine the classname by looking in the META-INF/services/javax.xml.stream.XMLOutputFactory files in jars available to the JRE.
4. Use the platform default XMLOutputFactory instance.












Powered by
Atlassian Confluence
(Version: 2.2.9 Build:#527 Sep 07, 2006)
-
Bug/feature request

Unsubscribe or edit your notifications preferences