Announcement Announcement Module
Collapse
No announcement yet.
Outputting jdom to console - SI 1.0.0 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Outputting jdom to console - SI 1.0.0

    Hello,

    I have a service activator that processes a jdom document and prints the result to the console stdout-channel-adapter.The result which is being returned by service activator is the jdoms root element.But I c only the following in console :

    Code:
    [Element: <div:divisionResponse [Namespace: http://gid.com/div/schemas]/>]
    I tried to print this root element inside the service activators method using XMLOutputter before returning it and I can c everything! Is there something I can do to c my xml??

  • #2
    If the payload is an object, the stdout-channel-adapter will print out the result of invoking toString(). One possible solution in this case is to insert an intermediate Transformer that converts the Element to the String XML.

    Marius

    Comment


    • #3
      Thanks for the response Marius. Could u give an example? And is there a Transformer support for JDOM???

      Comment


      • #4
        As mentioned here Splitting XML Messages there is not currently any out of the box support for JDOM.

        Comment

        Working...
        X