Jun 15

The attached document briefly explores the Encoder aspect of Java CAPS 6/JBI and OpenESB. It walks through the process of creation, deployment and execution of a simple File-to-File integration solution that reads comma-delimited record from a text file, ‘decodes’ then into XML and writes the XML-equivalent records into a file. The project is then extended to ‘encode’ XML records back to CSV format on output.

The focus is the practice of using JBI components not the theory of JBI.

This document addresses the integration solution developers, not developers of Service Engines or Binding Components.

The project uses JBI components only, that’s why it is just as good for OpenESB exploration as it is for Java CAPS 6/JBI exploration.

JBI (Java Business Integration) is not discussed to any great extent. JBI artifact names are used in discussion but not elaborated upon. Explanations are provided where necessary to foster understanding of the mechanics of developing integration solutions using JBI technologies in OpenESB and Java CAPS 6/JBI.

Java CAPS 6 and OpenESB are two of a number of toolkits that implement the JBI specification (JSR 208). When I use an expression like “In JBI …” I actually mean “In JBI as implemented in Java CAPS 6 and OpenESB …”. The same things may well be implemented differently in other JBI toolkits.

Java CAPS 6 “Revenue Release” is used and shown in illustrations. OpenESB can be used instead however the appearance of components shown in illustrations may vary somewhat.

I use Windows to develop these solutions and make no effort to verify that the solutions will run on other platforms.

The complete walkthrough is here.

2 Responses to “Java CAPS 6/JBI Note 3 – File-2-File with CSV to XML Decode/Encode”

  1. Rushi says:

    Hi Michael, Thanks for this wonderful tutorial. I am able to parse csv file using this tutorial as a ref. I have small doubt regarding quote-esc Type of encoder.
    I am using ‘,’ delimiter to separate the records, but I want to escape comma present inside double quotes. (for eg: a, “b,c”, d,e,f)
    How can I achieve this? I tried to use quote-esc type delimiter with “Bytes” property as “,”.tried some more variations, but nothing worked. Can you provide me exact syntax for this?

Leave a Reply

preload preload preload