WSO2 File Processing

File Processing On WSO2 A Simple File Processing Example

This example sets up a simple file processing orchestration on the ESB which reads a CSV file from a watched folder, transforms it and writes it to another folder in an arbitrary format.

Initial attempts to process .csv files on the WSO2 service bus were based on the example in http://wso2.com/library/blog-post/2013/09/csv-to-xml- transformation-with-wso2-esb-smooks-mediator/ which works in the following way:

The process being:

wso2flow1

1. We set up a VFS Reader Proxy to poll for files a defined folder

2. When a file is found we use a smooks transformation to change the file into an XML structure

3. We then use a WSO2 XSLT transform to transform the XML to a .csv format.

Lets get started!
Continue reading WSO2 File Processing

WSO2 Installation

Just a simple series of steps to install the WSO2 ESB software – it’s free, give it a try!

Download

Download the ESB software from :

http://wso2.com/products/enterprise-service-bus/

Note that WSO2 is a fully featured enterprise ESB solution and as such has many components. The ESB is the core component that we are using for this example and therefore what we are planning to install.

Uzip that file into a location on your machine, I am using a mac and I have decided to unpack it to /Users/timteece/Documents/Wso2/wso2esb-4.9.0/

Download Java JDK

The ESB requires the appropriate version of the Java JDK to run, so download this and install it on your machine.

Run the ESB

Start a command line and change directory to <ESB Installation Directory>/bin On windows run the command
wso2server.bat
on mac or windows run the command

./wso2server.sh

Note on mac sometimes the java home environment variable is not set correctly, if this is the case run the following command and before running the wso2server

JAVA_HOME=”$(/usr/libexec/java_home -v 1.8)”

Open the Administrator Console

When the server has started you can open the admin console of the ESB using the URL that was logged, check the startup logs at the end for the line:

INFO – CarbonUIServiceComponent Mgt Console URL : https://<ipaddress>:9443/carbon/

Log In

The default user name and password is ‘admin’ and ‘admin’. Change these in a production system