Does our version of Equinox support blueprint?

http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-OSGI

Blueprint

The following example shows how to configure a JAX-RS endpoint in OSGI
containers supporting Blueprint:

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
           xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws";
           xmlns:jaxrs="http://cxf.apache.org/blueprint/jaxrs";
           xmlns:cxf="http://cxf.apache.org/blueprint/core";
           xsi:schemaLocation="
             http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
             http://cxf.apache.org/blueprint/jaxrs
http://cxf.apache.org/schemas/blueprint/jaxrs.xsd
             http://cxf.apache.org/blueprint/core
http://cxf.apache.org/schemas/blueprint/core.xsd
             ">

    <cxf:bus>
        <cxf:features>
            <cxf:logging/>
        </cxf:features>
    </cxf:bus>

     <jaxrs:server id="customerService" address="/customers">
        <jaxrs:serviceBeans>
           <ref component-id="serviceBean" />
        </jaxrs:serviceBeans>
     </jaxrs:server>

     <bean id="serviceBean" class="service.CustomerService"/></blueprint>


On 9 June 2012 18:34, Hasini Gunasinghe <[email protected]> wrote:

>
>
> On Sat, Jun 9, 2012 at 9:02 PM, Thilina Buddhika <[email protected]>wrote:
>
>>
>>
>> On Sat, Jun 9, 2012 at 8:49 PM, Hasini Gunasinghe <[email protected]>wrote:
>>
>>> Hi,
>>>
>>> On Sat, Jun 9, 2012 at 6:48 PM, Thilina Buddhika <[email protected]>wrote:
>>>
>>>>
>>>>
>>>> On Sat, Jun 9, 2012 at 6:39 PM, Senaka Fernando <[email protected]>wrote:
>>>>
>>>>> Hi Thilina,
>>>>>
>>>>> JAX-RS implementation means Wink/CXF or are you talking about the
>>>>> actual service?
>>>>>
>>>>
>>>> It is the actual service implementation.
>>>>
>>>>
>>>>>
>>>>> I have been able to deploy a JAX-RS service on AS using Wink. But,
>>>>> that was deployed as a webapp. That's a possible approach, but I don't
>>>>> think that it is the best approach. We have to embed wink dependencies in
>>>>> the webapp at the minimum, and after all it does not get deployed as a
>>>>> service in Axis2, so no management and statistics functionality and no
>>>>> module/handler capabilities are available. Its just another standalone
>>>>> application
>>>>>
>>>>
>>>> What I am looking for a way to embed this service into a Carbon
>>>> component, similar to what we do for axis2 services/modules, etc by adding
>>>> some sort of descriptor file or a flag in the manifest so that Carbon
>>>> runtime will deploy them accordingly.
>>>>
>>>
>>> I too had the same requirement - to expose a JAX-RS service from a
>>> carbon component. As I got to know from Isuru, we can use CXF based web app
>>> deployer to deploy webapps that expose CXF based JAX-RS services.
>>>
>>> For an example, if we need to expose a JAX-RS service from IS, following
>>> is what we have to do, AFAIU (haven't tried it yet though):
>>>
>>> 1. Add the feature related to CXF based web app deployer to IS.
>>> 2. Build a webapp that expose the CXF based JAX-RS service in our
>>> component.
>>> 3. Install the webapp into the relevant folder from which the deployer
>>> will pick the webapps, during feature installation/product build.
>>> So that when IS starts, the webapp will be deployed per-tenant and the
>>> JAX-RS services will be exposed.
>>>
>>> But AFAIU, it is not the exact way you are looking for: (i.e: being able
>>> to deploy JAX-RS service by adding some descriptor file in the
>>> carbon-component just like how axis2 services are exposed from
>>> carbon-components)
>>>
>>
>> This approach is possible. But it is very restrictive to implement a
>> functionality like an OAuth token endpoint given that we have to access
>> other Carbon APIs through Carbon Context. IMO existing functionality
>> exposed through the Carbon Context is sufficient for implementing end user
>> web apps or services, but it is not sufficient to implement a core
>> Carbon functionality.
>>
>
> +1.
>
> Thanks,
> Hasini.
>
>>
>> Thanks,
>> Thilina
>>
>>
>>>
>>> Thanks,
>>> Hasini.
>>>
>>>>
>>>>
>>>> Thanks,
>>>> Thilina
>>>>
>>>>
>>>>>
>>>>> Thanks,
>>>>> Senaka.
>>>>>
>>>>> On Sat, Jun 9, 2012 at 6:04 PM, Thilina Buddhika <[email protected]>wrote:
>>>>>
>>>>>> Hi Folks,
>>>>>>
>>>>>> I want to expose a JAX-RS service from a Carbon component. I already
>>>>>> have the JAX-RS implementation. Have we figured out a way to expose this
>>>>>> from a Carbon component similar to the Axis2 services ?
>>>>>>
>>>>>> Thanks,
>>>>>> Thilina
>>>>>>
>>>>>> --
>>>>>> Thilina Buddhika
>>>>>> Associate Technical Lead
>>>>>> WSO2 Inc. ; http://wso2.com
>>>>>> lean . enterprise . middleware
>>>>>>
>>>>>> phone : +94 77 44 88 727
>>>>>> blog : http://blog.thilinamb.com
>>>>>>
>>>>>> _______________________________________________
>>>>>> Dev mailing list
>>>>>> [email protected]
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Senaka Fernando*
>>>>> Member - Integration Technologies Management Committee;
>>>>> Technical Lead; WSO2 Inc.; http://wso2.com
>>>>> *
>>>>> Member; Apache Software Foundation; http://apache.org
>>>>>
>>>>> E-mail: senaka AT wso2.com
>>>>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>>>>> Linked-In: http://linkedin.com/in/senakafernando
>>>>>
>>>>> *Lean . Enterprise . Middleware
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Thilina Buddhika
>>>> Associate Technical Lead
>>>> WSO2 Inc. ; http://wso2.com
>>>> lean . enterprise . middleware
>>>>
>>>> phone : +94 77 44 88 727
>>>> blog : http://blog.thilinamb.com
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> [email protected]
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>
>>
>> --
>> Thilina Buddhika
>> Associate Technical Lead
>> WSO2 Inc. ; http://wso2.com
>> lean . enterprise . middleware
>>
>> phone : +94 77 44 88 727
>> blog : http://blog.thilinamb.com
>>
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Paul Fremantle
CTO and Co-Founder, WSO2
OASIS WS-RX TC Co-chair, VP, Apache Synapse

UK: +44 207 096 0336
US: +1 646 595 7614

blog: http://pzf.fremantle.org
twitter.com/pzfreo
[email protected]

wso2.com Lean Enterprise Middleware

Disclaimer: This communication may contain privileged or other confidential
information and is intended exclusively for the addressee/s. If you are not
the intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print, copy,
retransmit, disseminate, or otherwise use the information contained in this
communication. Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept liability for any
errors or omissions.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to