Hi Harshan,
Yes, you can use Apache CXF for this purpose. You can find a simpler
example here[1] with sample code.

[1] .
http://wso2.com/library/articles/2012/10/develop-cxf-based-jaxws-wso2-developer-studio/

Regards,
Inosh

On Sun, Oct 19, 2014 at 5:07 PM, Dilan Udara Ariyaratne <[email protected]>
wrote:

> Hi Harshan!
>
> Apart from Apache CXF, Jersey is also a very good alternative that you can
> consider in writing your JAX-RS web applications.
>
> I am personally impressed with the simplicity of getting up-and-running
> Restful web services using Jersey.
>
> Resources that you may find useful on this:
> [1]
> http://stackoverflow.com/questions/2704700/java-rest-implementation-jersey-vs-cxf
> [2] https://jersey.java.net/documentation/latest/getting-started.html
> [2] http://www.vogella.com/tutorials/REST/article.html
>
> Cheers!
>
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. <http://wso2.com/>
> Mobile: +94775149066
> lean . enterprise . middleware
>
> On Sun, Oct 19, 2014 at 12:09 PM, Bhathiya Jayasekara <[email protected]>
> wrote:
>
>> Hi Harshan,
>>
>> On Sun, Oct 19, 2014 at 11:37 AM, Harshan Liyanage <[email protected]>
>> wrote:
>>
>>> Hi,
>>>
>>> I'm trying to do the following.
>>>
>>>    1. Create a JAX-RS web app & deploy it in AS
>>>    2. Create an OSGi bundle which has all the business logic
>>>    implementation (exposed as OSGi services) for above JAX-RS web services
>>>    3. Consume above OSGi services inside JAX-RS web app
>>>
>>> What is the best way to achieve the above? Do I need to use Apache CXF
>>> for this?
>>>
>>
>> Yes, you can use CXF to write the REST service. We have used it in
>> several places[1][2][3] in platform. You can have look and learn how it is
>> used.
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.oauth.endpoint/4.2.3
>> [2]
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/data-bridge/org.wso2.carbon.databridge.receiver.restapi/4.2.0
>> [3]
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.scim.provider/4.2.1
>>
>> Thanks,
>> Bhathiya
>>
>>
>>>
>>> Thanks,
>>>
>>> Best Regards,
>>>
>>> Lakshitha Harshan
>>> Software Engineer
>>> Mobile: *+94724423048*
>>> Email: [email protected]
>>> Blog : http://harshanliyanage.blogspot.com/
>>> *WSO2, Inc. :** wso2.com <http://wso2.com/>*
>>> lean.enterprise.middleware.
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Bhathiya Jayasekara*
>> *Software Engineer,*
>> *WSO2 inc., http://wso2.com <http://wso2.com>*
>>
>> *Phone: +94715478185 <%2B94715478185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> <http://www.linkedin.com/in/bhathiyaj>*
>> *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>*
>> *Blog: http://movingaheadblog.blogspot.com
>> <http://movingaheadblog.blogspot.com/>*
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Inosh Perera
Software Engineer, WSO2 Inc.
Tel: 0785293686
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to