ESB Tools

Content

Sequence Artifact

To create a Sequence, right click on the C-App project and select Sequence from the menu.



New Server Runtime



There are three ways to create a Sequence.
  1. New Sequence
  2. Import Sequence from File System
  3. Import Sequence from Registry




New Server Runtime



When the Create sequence as a registry resource check box is selected the Sequence will be added to the the registry.



New Server Runtime



With the New Sequence option, you will get a simple Sequence with the specified name. At the same time, you can upload a Synapse Configuration file or any XML file from the file system or from the registry which may contain Sequences.



New Server Runtime



With the Import Sequence from Registry, you can browse resources of the registry instance that you have already created or you can create a new registry instance as well.



New Server Runtime



After selecting the registry instance, click on Browse to browse resources in registry.





New Server Runtime



When you select the XML file, it will list all the Sequences available in a table. Select the Sequences you want and click Next.





New Server Runtime



Select the C-App project you want to create Sequences and click Finish.





New Server Runtime



Now you will see new Sequence artifacts are created under the selected C-App project.





New Server Runtime







New Server Runtime



Endpoint Artifact

To create an Endpoint, right click on the C-App project and select EndPoint from the menu.





New Server Runtime



There are three ways to create an Endpoint.

  1. New EndPoint
  2. Import EndPoint from File System
  3. Import EndPoint from Registry




New Server Runtime



With the New EndPoint option, you will get a simple Endpoint with the specified name. At the same time, you can upload a Synapse Configuration file or any XML file from the file system or from the registry which may contains EndPoints.



New Server Runtime



With the Import EndPoint from Registry, you can browse resources of the registry instance that you have already created or you can create a new registry instance as well. After selecting the registry instance, click on Browse to browse resources in registry.





New Server Runtime



When you select the XML file, it will list all the Endpoints available, in a table. Select the Endpoints you want and click Next.

Select the C-App project you want to create EndPoints and click Finish.





New Server Runtime



Now you will see new Endpoint artifact is created under the selected C-App project.





New Server Runtime



Local Entry Artifact

To create an ESB Local Entry, right click on the C-App project and select Local Entry from the menu.





New Server Runtime



There are four ways to create Local entry.

  1. New Local Entry
  2. Import From a Source URL Entry
  3. Import Local Entries from synapse.xml of the file system
  4. Import Local Entries from a synapse.xml of the registry




New Server Runtime



With the New Local Entry option, you can create Local entries with In-lined Text Entry or In-lined XML Entry.



New Server Runtime



You can edit the created Local entry with ESB editor later with graphical editor that is provided.





New Server Runtime



With the Import From a Source URL Entry, you can point to a file of the local file system.





New Server Runtime



With the next two options Import Local Entries from synapse.xml of the file system and Import Local Entries from a synapse.xml of the registry, you can point to a synapse.xml file of the file system or registry.





New Server Runtime



When you select the XML file, it will list all the Local entries available, in a table. Select the Local entries you want and click Next.

Select the C-App project you want to create Local Entries and click Finish.





New Server Runtime



Now you will see new Local Entry artifact is created under the selected C-App project.





New Server Runtime



You can edit created Local Entries later with the help of ESB editor.





New Server Runtime



Proxy Service Artifact

To create a Proxy Service, right click on the C-App project and select Proxy Service from the menu.





New Server Runtime



There are three ways to create a Proxy Service.

  1. New Proxy Service
  2. Import Proxy Service from File System
  3. Import Proxy Service from Registry




New Server Runtime



With the New Proxy Service option, you will get a simple Proxy service with the specified name. At the same time, you can upload a Synapse Configuration file or any XML file from the file system or from the registry which may contains Proxy Services.



New Server Runtime



With the Import Proxy Service from Registry, you can browse resources of the registry instance that you have already created or you can create a new registry instance as well. After selecting the registry instance, click on Browse to browse resources in registry.





New Server Runtime



When you select the XML file, it will list all the Proxy services available in a table. Select the Proxy services you want and click Next.

Select the C-App project you want to create Proxy Services and click Finish.





New Server Runtime



Now you will see new Proxy services are created under the selected C-App project.





New Server Runtime



Synapse Configuration Artifact

To create a Synapse configuration, right click on the C-App project and select Synapse Configuration from the menu.





New Server Runtime



There are four ways to create a Synapse configuration.

  1. Create Synapse Configuration from template
  2. Create Empty Synapse Configuration
  3. Import Synapse file from the file system
  4. Import Synapse file from the registry




New Server Runtime



With the Create Synapse Configuration from template option, you will get a simple Synapse configuration which will contains main Sequence and fault Sequence by default.



New Server Runtime



If you select Create Empty Synapse Configuration, you will get an empty Synapse configuration file. At the same time, you can upload a Synapse Configuration file or any XML file from the file system or from the registry.





New Server Runtime



With the Import Synapse file from the registry, you can browse resources of the registry instance that you have already created or you can create a new registry instance as well. After selecting the registry instance, click on Browse to browse resources in registry. When you select the XML file, it will list all the Sequences, Endpoints and Proxy services available, in a table. Select the artifacts you want and click Next.





New Server Runtime



Select the C-App project you want to create Synapse Configuration and click Finish.





New Server Runtime



Now you will see new Endpoint, Proxy or Sequence artifacts are created under the selected C-App project.





New Server Runtime



Smooks Configuration Artifact

In order to create a Smooks Configuration Artifact, first you need to create a Registry Resource, right click on the CApp project select New and then select Registry Resource from the menu.





New Server Runtime



Then From existing template option,select Smooks Configuration template.





New Server Runtime



Give the necessary information as you preferred and click Next.





New Server Runtime



Give a name to the artifact if it is not filled already and click Finish.





New Server Runtime



Now you will see smooks-configuration file has been created and it will be open in the embedded JBoss Smooks editor.





New Server Runtime



You can find more information regarding how to map data using smooks configuration from here.

To run the created smooks-configuration, you will need to add libraries from smooks framework. To add these libraries select the C-App project and go to Project -> Properties.





New Server Runtime



Select Java Build Path and go to Libraries tab.





New Server Runtime



Click on Add Library button and you will see Add Library page which has WSO2 Classpath Libraries entry at the bottom.





New Server Runtime



Select WSO2 Classpath Libraries and click Next. Now you will see a multi-tab page which includes most of the third party libraries that will be needed for your SOA development. To add smooks related libraries, go to Smooks tab.





New Server Runtime



Select all the libraries by clicking Select All button and click Finish.





New Server Runtime



Now you will see, all the smooks related libraries are added to project classpath.





New Server Runtime



Now you can run smooks configuration file by right click on the file and select Run As -> Smooks Run Configuration after doing the mapping you need.





New Server Runtime



You can add this newly created smooks configuration artifact in to ESB Tools via Proxy Service.To do so, you need to creat a Proxy Service artifact as mentioned previously in this article.Then you can see there is a selection called Anonymous under InSequance drop down.If it is not there click on InsSquance and set Anonymous from its properties.





New Server Runtime



Next right click on Anonymous and then select New Child -> Advanced -> Smooks from the menu.





New Server Runtime



Then select Properties from the Smooks sequence.





New Server Runtime



Then add the created Smooks Registry Resource in to the proxy server artifact.





New Server Runtime







New Server Runtime