Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member

Now consider this scenario, the input flat file is in the following format.Vector[] vectorItem = new Vector ;

          

for(int intCounter =0; intCounter < arrayItemset.length; intCounter++) {

     StringTokenizer st = new StringTokenizer (arrayItemset[intCounter],",");

     vectorItem[intCounter] = new Vector(20);

               

     while (st.hasMoreTokens())

          vectorItem[intCounter].addElement (st.nextToken());

     vectorItem[intCounter].trimToSize();

}

          

for(int intVectorCounter = 0; intVectorCounter < vectorItem.length; intVectorCounter++ )

     for(int intCounter = 0; intCounter < vectorItem .capacity(); intCounter++)

          result.addValue((String) vectorItem .get(intCounter));               





Finally create the Interface Mapping also.



 



In the Configuration part, both the Sender and Receiver Communication
channels will use File adapter.



 



In the Sender Communication channel, we have to choose the
Message Protocol as File Content Conversion and also fill the Content
Conversion Parameters as shown in the following picture.



 





And also add the following columns in the Content Conversion Parameters. These columns are sufficient to do this conversion.



 





Then do the remaining Confiuration part for executing this scenario.


3 Comments