Hi, On Sat, Jun 9, 2012 at 6:48 PM, Thilina Buddhika <thili...@wso2.com> wrote:
> > > On Sat, Jun 9, 2012 at 6:39 PM, Senaka Fernando <sen...@wso2.com> 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) Thanks, Hasini. > > > Thanks, > Thilina > > >> >> Thanks, >> Senaka. >> >> On Sat, Jun 9, 2012 at 6:04 PM, Thilina Buddhika <thili...@wso2.com>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 >>> Dev@wso2.org >>> 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 > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev