Carbon StudioDownloadsDocumentation
SamplesGet InvolvedProject Information![]() |
ESB ToolsContentSequence ArtifactTo create a Sequence, right click on the C-App project and select Sequence from the menu.![]() There are three ways to create a Sequence.
![]() When the Create sequence as a registry resource check box is selected the Sequence will be added to the the registry. ![]() 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. ![]() 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. ![]() 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 available in a table. Select the Sequences you want and click Next.
Select the C-App project you want to create Sequences and click Finish.
Now you will see new Sequence artifacts are created under the selected C-App project.
Endpoint ArtifactTo create an Endpoint, right click on the C-App project and select EndPoint from the menu.
There are three ways to create an Endpoint.
![]() 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. ![]() 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.
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.
Now you will see new Endpoint artifact is created under the selected C-App project.
Local Entry ArtifactTo create an ESB Local Entry, right click on the C-App project and select Local Entry from the menu.
There are four ways to create Local entry.
With the New Local Entry option, you can create Local entries with In-lined Text Entry or In-lined XML Entry. You can edit the created Local entry with ESB editor later with graphical editor that is provided.
With the Import From a Source URL Entry, you can point to a file of the local file system.
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.
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.
Now you will see new Local Entry artifact is created under the selected C-App project.
You can edit created Local Entries later with the help of ESB editor.
Proxy Service ArtifactTo create a Proxy Service, right click on the C-App project and select Proxy Service from the menu.
There are three ways to create a Proxy Service.
![]() 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. ![]() 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.
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.
Now you will see new Proxy services are created under the selected C-App project.
Synapse Configuration ArtifactTo create a Synapse configuration, right click on the C-App project and select Synapse Configuration from the menu.
There are four ways to create a Synapse configuration.
![]() 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. ![]() 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.
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.
Select the C-App project you want to create Synapse Configuration and click Finish.
Now you will see new Endpoint, Proxy or Sequence artifacts are created under the selected C-App project.
Smooks Configuration ArtifactIn 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.
Then From existing template option,select Smooks Configuration template.
Give the necessary information as you preferred and click Next.
Give a name to the artifact if it is not filled already and click Finish.
Now you will see smooks-configuration file has been created and it will be open in the embedded JBoss Smooks editor.
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.
Select Java Build Path and go to Libraries tab.
Click on Add Library button and you will see Add Library page which has WSO2 Classpath Libraries entry at the bottom.
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.
Select all the libraries by clicking Select All button and click Finish.
Now you will see, all the smooks related libraries are added to project classpath.
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.
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.
Next right click on Anonymous and then select New Child -> Advanced -> Smooks from the menu.
Then select Properties from the Smooks sequence.
Then add the created Smooks Registry Resource in to the proxy server artifact.
|