Skip to Content
author's profile photo Former Member
Former Member

Message Transform bean for nested structures

Hi ,

I am working on the JMS sender channel using message transform bean.

Our message type is a complex nested structure of level 2:

MT_test

RECORD

HEADER

mykey

Data1

Data2

Data3 \

ITEM1

ITEMSUB1

mykey

Data4

Data5

ITEM2

mykey

Data6

Currently I am specifying it as HEADER,ITEMSUB1,ITEM2 to capture the data but the output xml structure is not coming apt bringing all three nodes to the same level.

how should we specify the recordset structure?

3.jpg (117.3 kB)
2.jpg (158.9 kB)
issue1.jpg (66.6 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Feb 18, 2014 at 08:13 AM

    Hi Anshima,

    I think the MessageTransformBean shares the same limitation by the standard file sender adapter fcc, it can only convert up to three levels. You can write an adapter module though for your requirement or handle it via java mapping (unless you need it to be converted into XML for xpath reasons).

    Regards,

    Mark

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.