Powered By Blogger

Jan 14, 2014


Deploying a Carbon Application


This blog post describe how to deploy the Carbon Application (CApp) to the server via wso2 Developer Studio

As prerequisites you should download [1] & [2]

[2] WSO2 Developer Studio - http://wso2.com/products/developer-studio/

1. Creating the CApp

Let's assume you want to deploy a proxy service in the ESB server. In that case 1st you need to create an ESB project (ESBProject)  containing the proxy (proxy_1)

Then go to the Developer Studio dashboard and select on 'Composite Application Project' then you will get a wizard. In that wizard give a name for the CApp and the under dependencies select the projects you want to include in the CApp and click 'Finish'



2. Package as a CAR (Carbon Application Achieve)

This can be done in two ways

(a) Package as CAR using Developer Studio
(b) Package as CAR using maven


Package as CAR using Developer Studio

You can right click on the created CApp and select 'Export as Composite Application Project' from the menu. Then you can specify a name and a destination from the wizard.


Now a .car file as been created at the given destination

Package as CAR using maven

You can go the location of the ESB project and then build it using 'mvn clean install'



Then go the location of the created CApp and build it using 'mvn clean install'. After building if you go inside the CApp and see a folder called 'target' has been created (initially only the pom.xml file was there) . Inside the target folder you can see the .car file has been created.



3. Deploy the CAR

Now you can go the management console of ESB and then Carbon Applications-> Add and browse to the .car file



Once you click on the Upload button you will get a notification as below if it get uploaded successfully



If you  navigate to the Services category in the management console and list the services you can see the proxy service which you have deployed is there.






1 comment:

  1. Hi!

    There's any way to import a .CAR file to my Eclipse workspace?

    ReplyDelete