Re: Karaf CXF SCR REST example...

2019-11-22 Thread Ranx0r0x
This is the design of the plugins. Today I'm working on a new JAASAuthenticationConfiguratorPlugin. To keep this sane, I have configurator beans associated with the plugins which reflect things like the default values (avoids having to check for nulls and then convert stuff like "true" to Booleans.

Re: Karaf CXF SCR REST example...

2019-11-21 Thread Ranx0r0x
If I'm correct this will get the behavior I'm after with any cfg file associated with org.apache.cxf.bus-*.cfg triggering this. This seems to work correctly but is a rather different design than what I'd envisioned but that may only be due to older understanding of services, managed service facto

Re: Karaf CXF SCR REST example...

2019-11-21 Thread Jean-Baptiste Onofré
Hi, you have the same for SOAP already available in the example: https://github.com/apache/karaf/tree/master/examples/karaf-soap-example/karaf-soap-example-scr Regards JB On 21/11/2019 17:31, Ranx0r0x wrote: > Thanks for all the feedback. I'm sure the JAX RS Whiteboard is much cleaner. > I've g

Re: Karaf CXF SCR REST example...

2019-11-21 Thread Ranx0r0x
Thanks for all the feedback. I'm sure the JAX RS Whiteboard is much cleaner. I've got legacy code I'm dealing with and can only go so far. JBs code would also be applicable to a JAXWSFactoryBean if I have to set up a related SOAP service. I commonly annotate my interfaces with both SOAP and REST an

Re: Karaf CXF SCR REST example...

2019-11-20 Thread Scott Lewis
FWIW, Another approach is to use OSGi Remote Services [1]...specifically ECF's JaxRS distribution provider impls [2]. Remote Services Admin creates a proxy for the remote service and this proxy is/may be treated as a local service by SCR. The ECF impl allows pluggable distribution providers,

Re: Karaf CXF SCR REST example...

2019-11-20 Thread Oliver Schweitzer
I understand where you’re coming from. So Christian is basically right, the Jax-RS Whiteboard, like the whole DS approach, feels somewhat like the future - a clean, elegant form of building dynamic modular, standards-based services with Java. For me, the Wow! happened. But it’s only almost, n

Re: Karaf CXF SCR REST example...

2019-11-20 Thread Ranx0r0x
Christian, That's probably not going to happen as we migrate over with all the plugins, providers and interceptors setup in the current environment to a better more decoupled design but still using CXF. I'm not even 100% positive I'm free of SOAP endpoints yet. We a number of endpoints with diffe

Re: Karaf CXF SCR REST example...

2019-11-20 Thread Jean-Baptiste Onofré
That's another approach depending of the "control" you want. The examples also show jaxrs whiteboard approach. Regards JB On 20/11/2019 15:35, Christian Schneider wrote: > The elegant way is to use the Aries JAXRS Whiteboard. > > Christian > > Am Mi., 20. Nov. 2019 um 00:54 Uhr schrieb Ranx0r0

Re: Karaf CXF SCR REST example...

2019-11-20 Thread Christian Schneider
The elegant way is to use the Aries JAXRS Whiteboard. Christian Am Mi., 20. Nov. 2019 um 00:54 Uhr schrieb Ranx0r0x < regis...@bradleejohnson.com>: > I noticed that when I stopped/uninstalled the bundle the CXF endpoint was > still up and the bundle couldn't be reinstalled. By saving the Server

Re: Karaf CXF SCR REST example...

2019-11-19 Thread Jean-Baptiste Onofré
Hi Good point, I forgot to destroy the CXF RS server. I created https://issues.apache.org/jira/browse/KARAF-6523 for the tracking and I'm fixing that. Thanks Regards JB On 20/11/2019 00:54, Ranx0r0x wrote: > I noticed that when I stopped/uninstalled the bundle the CXF endpoint was > still up an

Re: Karaf CXF SCR REST example...

2019-11-19 Thread Ranx0r0x
I noticed that when I stopped/uninstalled the bundle the CXF endpoint was still up and the bundle couldn't be reinstalled. By saving the Server and destroying it on @Deactivate it correctly went away. There may be a more elegant or better way to do this but it may be that it should be part of the s

Karaf CXF SCR REST example...

2019-11-19 Thread Ranx0r0x
https://github.com/apache/karaf/tree/master/examples/karaf-rest-example/karaf-rest-example-scr I was just checking out this latest example and have to say I like it quite a bit. One thing I'm trying to focus on is being able to set up more than one Bus in a bus-centric bundle and then reuse them v