Blog | esb

« esb » Feed

6c4a91744a9f857f00ddd8802edb7465

JBoss SOA Platform: How to create a file listener ESB project

2010-11-01 12:58

Write comment

Am 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:
  1. Provide a name “FilePollerProject”.
  2. Select the appropriate tar­get 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.
  3. Choose the ESB version which is 4.4 for this lab.
Now, you can click "Finish" to get the project created.



As show above, the project was created and the ESB configuration editor was automatically opened. This is actu­ally the editor for the jboss­esb.xml file which you can find in the project by navigating to "esbcontent | META­INF | jboss­esb.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.

Read more…

 Nbre d'élements: 1/
1