Try following steps
Create the folder structure with .aar file (axis2 service) and artifact
files as follows
temp
|--> artifact.xml – [1]
|--> OrderProcessingCApp
|--> artifact.xml – [2]
|--> OrderProcessingService.aar
[1] artifact.xml
<?xml version="1.0" encoding="UTF-8"?>
<artifacts>
<artifact name="OrderProcessingCApp" version="1.0.0"
type="carbon/application">
<dependency artifact="OrderProcessingService" version="1.0.0"
include="true" serverRole="EnterpriseServiceBus"/>
</artifact>
</artifacts>
[2] 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>
go to the temp folder and execute the following command
temp> jar -cvf OrderProcessingCApp.car *
then add the .car file to the ESB
On Tue, May 6, 2014 at 4:51 PM, Pubudu Dissanayake <[email protected]> wrote:
> Hi,
>
> Follow these articles
> [1]
> http://wso2.com/library/tutorials/2014/03/understanding-the-carbon-component-architecture/
> [2]
> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
> [3]
> http://wso2.com/library/tutorials/2014/03/how-to-create-a-feature-from-wso2-carbon-component/
>
> Thanks,
> Pubudu
>
>
> On Tue, May 6, 2014 at 4:28 PM, Amalka Subasinghe <[email protected]> wrote:
>
>> This will help
>> https://docs.wso2.org/display/Carbon420/C-App+Deployment+Process
>>
>>
>>
>> On Tue, May 6, 2014 at 4:10 PM, Supun Sethunga <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> Is there any way of creating a carbon Component using an existing Axis2
>>> service (which includes both client and server classes) as a library? If
>>> so, is there any tutorial/article that I can refer to?
>>>
>>> The only method available for reference is [1], but it creates the
>>> carbon component from the scratch.
>>>
>>> Reference:
>>> [1]
>>> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>>>
>>> Thanks,
>>>
>>> --
>>> *Supun Sethunga*
>>> Software Engineer
>>> WSO2, Inc.
>>> lean | enterprise | middleware
>>> Mobile : +94 716546324
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Amalka Subasinghe
>>
>> Senior Software Engineer, WSO2 Inc.
>> Mobile: +94 77 9401267
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pubudu Dissanayake*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Mobile: 0775503304
>
--
Amalka Subasinghe
Senior Software Engineer, WSO2 Inc.
Mobile: +94 77 9401267
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev