0 Replies Latest reply on Feb 26, 2009 3:00 AM by Cedric RATHGEB

    How to read data without clear delimiters ?

    Cedric RATHGEB Newbie

      Hi,

      I have to read a flat file which contains one record per line. Data is coming from an old system and I have no separator at all. Here is a shortened example of an input file with only one record :

      0005208000010000037946


      Thanks to the documentation, I know the width of each column :

      contract[6] -> 000520
      employer[6] -> 800001
      category[2] -> 00
      caseNb[8] -> 00037946


      I would like to transform this data to something like that :
      <record>
       <contrat>000520</contract>
       <employer>800001</employer>
       <category>00</category>
       <caseNb>00037946</caseNb>
      </record>


      Is there a way to do that with JBoss ESB "out of the box" ? If no, which approach may I take to do that ?

      Thanks in advance!