Saturday, May 17, 2014

Develop Carbon application using Axis2 service

In this blog, I’m going to create Carbon Application (C-App) using the Axis2 service (.aar file).
References:
Create the folder structure with .aar file (axis2 service) and artifact files as follows


C-App -> artifacts.xml

<?xml version="1.0" encoding="UTF-8"?>
<artifacts>
<artifact name="OrderProcessingServiceCApp" version="1.0.0" type="carbon/application">
<dependency artifact="OrderProcessingService" version="1.0.0" include="true" serverRole="EnterpriseServiceBus"/>
</artifact>
</artifacts>

C-App -> OrderProcessingServiceCApp -> artifact.xml

<?xml version="1.0" encoding="UTF-8"?>
<artifact name="OrderProcessingService" version="1.0.0" type="service/axis2" serverRole="EnterpriseServiceBus">
<file>OrderProcessingService.aar</file>
</artifact>

Create the .car file and upload it to the ESB
C-App >> jar -cvf OrderProcessingServiceCApp.car * 

No comments: