You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Pradeep Fernando <pr...@gmail.com> on 2013/10/25 12:38:22 UTC

Creating a separate feature for REST endpoint support.

Hi Devs,

We have to include the newly created components in to a feature. That
includes,

- cxf runtime in carbon
- the REST endpoint webapp

First i thought of including the webapp in to an already existing stratos
feature (commons) and use as-runtime feature provided by carbon.

While going in that path, i noticed that the as-runtime features are only
available in Carbon 4.2.0.
Hence we have to create a stratos feature to do the same task. How about
creating a new feature for our context. The feature name would be,

rest.endpoint.feature

it will,

add CXF runtime
change tomcat web-app classLoaders
install statos rest endpoint webapp

wdyt ?

-- 
Pradeep Fernando.
http://pradeepfernando.blogspot.com/

Re: Creating a separate feature for REST endpoint support.

Posted by Pradeep Fernando <pr...@gmail.com>.
Hi devs,

I have attached the above functionality as a patch in [1]

this patch,

- installs stratos.war file in the manager runtime
- installs necessary cxf libs under  lib/runtimes/cxf
- modify carbon webapp loading files
- add @XMLRootElement annotation in TenantBeanInfo class for re-usable
purposes.


appreciate if someone can commit the patch to trunk.

[1] https://issues.apache.org/jira/browse/STRATOS-140

thanks.
--Pradeep


On Mon, Oct 28, 2013 at 8:40 AM, Pradeep Fernando <pr...@gmail.com>wrote:

> Only one component. The webapp itself. But  it needs cxf jars, and that
> should get packed in to a feature..
>
> thanks,
> --Pradeep
>
>
> On Mon, Oct 28, 2013 at 8:28 AM, Lahiru Sandaruwan <la...@wso2.com>wrote:
>
>> Hi Padeep,
>>
>> +1 for the feature.
>> How many components have we implemented to handle this aspect?
>>
>> Thanks.
>>
>>
>> On Mon, Oct 28, 2013 at 8:21 AM, Pradeep Fernando <pr...@gmail.com>wrote:
>>
>>> I hope there are no objections...
>>> I'm going ahead with this. will send in a patch..
>>>
>>> thanks,
>>> --Pradeep
>>>
>>>
>>> On Fri, Oct 25, 2013 at 4:08 PM, Pradeep Fernando <pr...@gmail.com>wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> We have to include the newly created components in to a feature. That
>>>> includes,
>>>>
>>>> - cxf runtime in carbon
>>>> - the REST endpoint webapp
>>>>
>>>> First i thought of including the webapp in to an already existing
>>>> stratos feature (commons) and use as-runtime feature provided by carbon.
>>>>
>>>> While going in that path, i noticed that the as-runtime features are
>>>> only available in Carbon 4.2.0.
>>>> Hence we have to create a stratos feature to do the same task. How
>>>> about creating a new feature for our context. The feature name would be,
>>>>
>>>> rest.endpoint.feature
>>>>
>>>> it will,
>>>>
>>>> add CXF runtime
>>>> change tomcat web-app classLoaders
>>>> install statos rest endpoint webapp
>>>>
>>>> wdyt ?
>>>>
>>>> --
>>>> Pradeep Fernando.
>>>> http://pradeepfernando.blogspot.com/
>>>>
>>>
>>>
>>>
>>> --
>>> Pradeep Fernando.
>>> http://pradeepfernando.blogspot.com/
>>>
>>
>>
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Software Engineer,
>> Platform Technologies,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> email: lahirus@wso2.com cell: (+94) 773 325 954
>> blog: http://lahiruwrites.blogspot.com/
>> twitter: http://twitter.com/lahirus
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>
>
> --
> Pradeep Fernando.
> http://pradeepfernando.blogspot.com/
>



-- 
Pradeep Fernando.
http://pradeepfernando.blogspot.com/

Re: Creating a separate feature for REST endpoint support.

Posted by Pradeep Fernando <pr...@gmail.com>.
Only one component. The webapp itself. But  it needs cxf jars, and that
should get packed in to a feature..

thanks,
--Pradeep


On Mon, Oct 28, 2013 at 8:28 AM, Lahiru Sandaruwan <la...@wso2.com> wrote:

> Hi Padeep,
>
> +1 for the feature.
> How many components have we implemented to handle this aspect?
>
> Thanks.
>
>
> On Mon, Oct 28, 2013 at 8:21 AM, Pradeep Fernando <pr...@gmail.com>wrote:
>
>> I hope there are no objections...
>> I'm going ahead with this. will send in a patch..
>>
>> thanks,
>> --Pradeep
>>
>>
>> On Fri, Oct 25, 2013 at 4:08 PM, Pradeep Fernando <pr...@gmail.com>wrote:
>>
>>> Hi Devs,
>>>
>>> We have to include the newly created components in to a feature. That
>>> includes,
>>>
>>> - cxf runtime in carbon
>>> - the REST endpoint webapp
>>>
>>> First i thought of including the webapp in to an already existing
>>> stratos feature (commons) and use as-runtime feature provided by carbon.
>>>
>>> While going in that path, i noticed that the as-runtime features are
>>> only available in Carbon 4.2.0.
>>> Hence we have to create a stratos feature to do the same task. How about
>>> creating a new feature for our context. The feature name would be,
>>>
>>> rest.endpoint.feature
>>>
>>> it will,
>>>
>>> add CXF runtime
>>> change tomcat web-app classLoaders
>>> install statos rest endpoint webapp
>>>
>>> wdyt ?
>>>
>>> --
>>> Pradeep Fernando.
>>> http://pradeepfernando.blogspot.com/
>>>
>>
>>
>>
>> --
>> Pradeep Fernando.
>> http://pradeepfernando.blogspot.com/
>>
>
>
>
> --
> --
> Lahiru Sandaruwan
> Software Engineer,
> Platform Technologies,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahirus@wso2.com cell: (+94) 773 325 954
> blog: http://lahiruwrites.blogspot.com/
> twitter: http://twitter.com/lahirus
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


-- 
Pradeep Fernando.
http://pradeepfernando.blogspot.com/

Re: Creating a separate feature for REST endpoint support.

Posted by Lahiru Sandaruwan <la...@wso2.com>.
Hi Padeep,

+1 for the feature.
How many components have we implemented to handle this aspect?

Thanks.


On Mon, Oct 28, 2013 at 8:21 AM, Pradeep Fernando <pr...@gmail.com>wrote:

> I hope there are no objections...
> I'm going ahead with this. will send in a patch..
>
> thanks,
> --Pradeep
>
>
> On Fri, Oct 25, 2013 at 4:08 PM, Pradeep Fernando <pr...@gmail.com>wrote:
>
>> Hi Devs,
>>
>> We have to include the newly created components in to a feature. That
>> includes,
>>
>> - cxf runtime in carbon
>> - the REST endpoint webapp
>>
>> First i thought of including the webapp in to an already existing stratos
>> feature (commons) and use as-runtime feature provided by carbon.
>>
>> While going in that path, i noticed that the as-runtime features are only
>> available in Carbon 4.2.0.
>> Hence we have to create a stratos feature to do the same task. How about
>> creating a new feature for our context. The feature name would be,
>>
>> rest.endpoint.feature
>>
>> it will,
>>
>> add CXF runtime
>> change tomcat web-app classLoaders
>> install statos rest endpoint webapp
>>
>> wdyt ?
>>
>> --
>> Pradeep Fernando.
>> http://pradeepfernando.blogspot.com/
>>
>
>
>
> --
> Pradeep Fernando.
> http://pradeepfernando.blogspot.com/
>



-- 
--
Lahiru Sandaruwan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahirus@wso2.com cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Re: Creating a separate feature for REST endpoint support.

Posted by Pradeep Fernando <pr...@gmail.com>.
I hope there are no objections...
I'm going ahead with this. will send in a patch..

thanks,
--Pradeep


On Fri, Oct 25, 2013 at 4:08 PM, Pradeep Fernando <pr...@gmail.com>wrote:

> Hi Devs,
>
> We have to include the newly created components in to a feature. That
> includes,
>
> - cxf runtime in carbon
> - the REST endpoint webapp
>
> First i thought of including the webapp in to an already existing stratos
> feature (commons) and use as-runtime feature provided by carbon.
>
> While going in that path, i noticed that the as-runtime features are only
> available in Carbon 4.2.0.
> Hence we have to create a stratos feature to do the same task. How about
> creating a new feature for our context. The feature name would be,
>
> rest.endpoint.feature
>
> it will,
>
> add CXF runtime
> change tomcat web-app classLoaders
> install statos rest endpoint webapp
>
> wdyt ?
>
> --
> Pradeep Fernando.
> http://pradeepfernando.blogspot.com/
>



-- 
Pradeep Fernando.
http://pradeepfernando.blogspot.com/