Table of Contents |
---|
General ESB Questions
What is WSO2 ESB?
...
Info | ||
---|---|---|
| ||
If you upload an erroneous artifact through a CAR file, a *.back file will not be created even if the deployment fails. |
How can you preserve a large CDATA block in WSO2 ESB?
In WSO2 ESB, all message that need to be built are parsed using AXIOM as the object model which relies on a standard StAX implementation library named Woodstox. When it comes to parsing CDATA sections there are few ambiguities in the StAX specification which result in multiple interpretations of what to do when non-coalescing mode is activated (javax.xml.stream.isCoalescing=false
). What Woodstox adheres to when it comes to large CDATA sections is to break them up to several pieces based on the buffer size. This shouldn't be a problem because most clients should be able to handle multiple consecutive CDATA sections.
However when it becomes a problem, Woodstox can be configured to increase the size of the text segment it reads. By setting this value to the maximum Integer value, Woodstox will not break up the CDATA sections until it reaches the configured value.
To configure this, add the following entry to <ESB_HOME>/XMLInputFactory.properties
file.
Code Block | ||
---|---|---|
| ||
com.ctc.wstx.minTextSegment=2147483647 |
...
Transports-Related Questions
...