JBoss SOA Platform: How to create a file listener ESB project
2010-11-01 12:58
Write commentAm going to cover a simple how-to guide to create a simple project with one ESB service, this one will poll a directory looking for a file with a given suffix, when a matching file is placed in the poll directory, it will read the contents of the file and send them as a message on the ESB.
I will consider the JBoss SOA Platform to deploy the ESB project, and will be using the JBoss Developer Studio to achieve it.
To create our ESB project, we need to select "File | New | Other":

As shown above, select "ESB Project" from the "ESB" folder and select and Click "Next".

There are three things we need to specify as shown above:
- Provide a name “FilePollerProject”.
- Select the appropriate target runtime from the dropdown.
Am not going to cover the SOA-P runtime installation in this tutorial, you may look into the documentation or contact us for commercial JBoss support. - Choose the ESB version which is 4.4 for this lab.

As show above, the project was created and the ESB configuration editor was automatically opened. This is actually the editor for the jbossesb.xml file which you can find in the project by navigating to "esbcontent | METAINF | jbossesb.xml" in the project explorer on the left of the JBDS window.
Now we need to create a gateway "provider". This is how we get messages onto the ESB.



