cancel
Showing results for 
Search instead for 
Did you mean: 

Content Conversion module in JMS Adapter - MessageTransformBean

Former Member
0 Kudos

Hi All,

We are using Content Conversion module using MessageTransformBean in JMS adapter to read a flat file from MQ Queue.It works fine and the file is getting picked and successfully converted into a xml structure in XI.

The flat file is multiple line file with each line as one xml record.But the xml structure after conversion has only one record in it.So we end up getting multiple messages each with one record instead of ONE xml structure with multiple records in it.

Could I know why I am not getting multiple records in one xml structure as expected.

Do I need to change xml.structureTitle as MyTitle,* or should I put something endSeparator like we do in File Content Conversion.

Any Help appreciated.

Thanks,

V

Edited by: CollinsV on Aug 9, 2010 6:28 AM

Edited by: CollinsV on Aug 9, 2010 6:36 AM

Edited by: CollinsV on Aug 9, 2010 6:38 AM

Edited by: CollinsV on Aug 9, 2010 6:39 AM

Edited by: CollinsV on Aug 9, 2010 6:56 AM

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

http://wiki.sdn.sap.com/wiki/display/XI/HowTo...ContentconversionmodulewithJ2EEJMS+adapter

refer that for clues

Former Member
0 Kudos

Thanks Shabarish .I did follow the same document , but the xml is not converted as multiple records in it .we are getting only one xml message for each record in the file .

The xml structure we are getting :

<ns:MyDocument xmlns:ns="http://xi.com/test">

<MyTitle>

<field-name1>111</field-name1>

<field-name2>222</field-name2>

<field-name3>333</field-name3>

</MyTitle>

</ns:MyDocument>

We need onle one xml message instead as below.

<ns:MyDocument xmlns:ns="http://xi.com/test">

<MyTitle>

<field-name1>AAA</field-name1>

<field-name2>BBB</field-name2>

<field-name3>CCC</field-name3>

</MyTitle>

<MyTitle>

<field-name1>111</field-name1>

<field-name2>222</field-name2>

<field-name3>333</field-name3>

</MyTitle>

</ns:MyDocument>

Any Help ...

Thanks

V

Answers (0)