Re: Whiteboard pattern for JAX-RS services

2009-06-25 Thread Sergey Beryozkin
Hi Please see my comments with prefixed with S.B. >> >>> > I'm not sure how CXF keeps track of these providers now, but I assume >> there's a registry of some kind. Are the providers tied to specific >> jax-rs >> resources, or are they "global"? If it's a global registry, it should be >> tri

Re: Whiteboard pattern for JAX-RS services

2009-06-25 Thread Josh Holtzman
On Thu, Jun 25, 2009 at 8:46 AM, Sergey Beryozkin wrote: > Hi Josh > > > I'd like to ask your opinion about providing JAXRS providers through this >>> pattern. >>> >> > >> >>> > I'm not sure how CXF keeps track of these providers now, but I assume >> there's a registry of some kind. Are the pr

Re: Whiteboard pattern for JAX-RS services

2009-06-25 Thread Sergey Beryozkin
Hi Josh I'd like to ask your opinion about providing JAXRS providers through this pattern. I'm not sure how CXF keeps track of these providers now, but I assume there's a registry of some kind. Are the providers tied to specific jax-rs resources, or are they "global"? If it's a global

Re: Whiteboard pattern for JAX-RS services

2009-06-24 Thread Josh Holtzman
On Tue, Jun 23, 2009 at 8:46 AM, Sergey Beryozkin wrote: > Hi Josh > > > > I've got some code that allows OSGI bundles to use the whiteboard pattern >> to >> register restful services. When a service is registered with a specific >> property, say, "jaxrs.resource=true" the JAX-RS implementation

Re: Whiteboard pattern for JAX-RS services

2009-06-23 Thread Sergey Beryozkin
Hi Josh I've got some code that allows OSGI bundles to use the whiteboard pattern to register restful services. When a service is registered with a specific property, say, "jaxrs.resource=true" the JAX-RS implementation registers that service as a JAX-RS resource. The same could be done with

Re: Whiteboard pattern for JAX-RS services

2009-06-12 Thread Josh Holtzman
Ok great, thanks Sergey and David! I'll just expose the service twice for now, and update my DS descriptors when the 4.2 spec is released, and when Cxf supports the new syntax. Josh On Friday, June 12, 2009, David Bosschaert wrote: > Hi Josh, > > With the upcoming OSGi 4.2 remote services spec

RE: Whiteboard pattern for JAX-RS services

2009-06-12 Thread Sergey Beryozkin
mholtz...@gmail.com] On Behalf Of Josh Holtzman Sent: 12 June 2009 16:39 To: dev@cxf.apache.org Subject: Re: Whiteboard pattern for JAX-RS services In the patch I submitted, I don't think there's a way to expose a service as both a wsdl-based endpoint and a restful endpoint. I'

Re: Whiteboard pattern for JAX-RS services

2009-06-12 Thread David Bosschaert
Hi Josh, With the upcoming OSGi 4.2 remote services spec (should be out this summer) you should be able to do this with a single service that specifies two configuration types. Let's say the configuration types are pojo (for the web service - maybe we need to give this a more descriptive name) and

Re: Whiteboard pattern for JAX-RS services

2009-06-12 Thread Josh Holtzman
In the patch I submitted, I don't think there's a way to expose a service as both a wsdl-based endpoint and a restful endpoint. I've been using the wsdl-based endpoints for DOSGi communication (hence, my initial focus on JAX-WS and the JAXB databinding), and registering jax-rs resources separately

Re: Whiteboard pattern for JAX-RS services

2009-06-12 Thread David Bosschaert
Yeah, so simply putting the property osgi.remote.interfaces=* on an OSGi service that is put in the OSGi service registry makes it available remotely through CXF/DOSGi. If you select the JAX/RS configueration type (which is currently being worked on) it should make it available via JAX-RS Isn't

RE: Whiteboard pattern for JAX-RS services

2009-06-12 Thread Sergey Beryozkin
Hi Josh It seems that in DOSGi RI this is actually what is being done. When a service is being registered a DSW provider picks up this event and creates an endpoint. So it should work in the case of JAX-RS & JAX-WS with the help of properties you introduced in your patch. David told me that if a