Re: Is there anything asynchronous about starting a server?

2016-03-06 Thread Benson Margulies
I make my own, to get the class loader right. package com.basistech.ws.frontend.service; import org.apache.cxf.Bus; import org.apache.cxf.BusFactory; import org.osgi.framework.wiring.BundleWiring; import org.osgi.service.component.ComponentContext; import org.osgi.service.component.annotations.Ac

Re: Is there anything asynchronous about starting a server?

2016-03-06 Thread James Carman
That worked! Thanks again. By the way, how are you determining which Bus to use? I used BusFactory.getDefaultBus(true). On Sun, Mar 6, 2016 at 5:48 PM James Carman wrote: > This should work very well! Thank you so much! I'll code it up tonight. I > will write an open source version of this i

Re: Is there anything asynchronous about starting a server?

2016-03-06 Thread James Carman
This should work very well! Thank you so much! I'll code it up tonight. I will write an open source version of this in the very near future On Sun, Mar 6, 2016 at 5:45 PM Benson Margulies wrote: > On Sun, Mar 6, 2016 at 5:18 PM, James Carman > wrote: > > It's karaf. I'm building a service that l

Re: Is there anything asynchronous about starting a server?

2016-03-06 Thread Benson Margulies
On Sun, Mar 6, 2016 at 5:18 PM, James Carman wrote: > It's karaf. I'm building a service that looks up at runtime the > configuration of the services and then "exports" them accordingly. I'd like > to support exporting via CXF and was looking for inspiration. > On Sun, Mar 6, 2016 at 5:16 PM Benso

Re: Is there anything asynchronous about starting a server?

2016-03-06 Thread James Carman
It's karaf. I'm building a service that looks up at runtime the configuration of the services and then "exports" them accordingly. I'd like to support exporting via CXF and was looking for inspiration. On Sun, Mar 6, 2016 at 5:16 PM Benson Margulies wrote: > James, no, but I'm happy to share more

Re: Is there anything asynchronous about starting a server?

2016-03-06 Thread Benson Margulies
James, no, but I'm happy to share more snippets or gists. Are you in Karaf or just in plain Java? I've done a lot of these over the years. On Sun, Mar 6, 2016 at 4:37 PM, James Carman wrote: > Benson, is this code on github somewhere? I'm looking to add CXF services > at runtime by code and this

Re: Is there anything asynchronous about starting a server?

2016-03-06 Thread James Carman
Benson, is this code on github somewhere? I'm looking to add CXF services at runtime by code and this looks promising. On Sun, Mar 6, 2016 at 4:33 PM Benson Margulies wrote: > It's also possible that the code on the other end is not, in fact, > trying the correct URL as a health check. I got some

Re: Is there anything asynchronous about starting a server?

2016-03-06 Thread Benson Margulies
It's also possible that the code on the other end is not, in fact, trying the correct URL as a health check. I got some evidence of that today, so this may all be a false alarm. On Sun, Mar 6, 2016 at 4:15 PM, Sergey Beryozkin wrote: > Interesting, I guess more analysis may be needed. > Perhaps

Re: Is there anything asynchronous about starting a server?

2016-03-06 Thread Sergey Beryozkin
Interesting, I guess more analysis may be needed. Perhaps Jetty does take few seconds to get 'really' ready after sf.create() returns, may be it is Jetty version specific ? Sergey On 06/03/16 12:51, Benson Margulies wrote: On Sun, Mar 6, 2016 at 7:08 AM, Sergey Beryozkin wrote: May be the se

Re: Is there anything asynchronous about starting a server?

2016-03-06 Thread Benson Margulies
On Sun, Mar 6, 2016 at 7:08 AM, Sergey Beryozkin wrote: > May be the service has not been started (exception is lost, not sure) or > address is wrong ? A moment later all is well. > > Sergey > > On 05/03/16 00:20, Benson Margulies wrote: >> >> The code below runs in Karaf. Is there any chance of

Re: Is there anything asynchronous about starting a server?

2016-03-06 Thread Sergey Beryozkin
May be the service has not been started (exception is lost, not sure) or address is wrong ? Sergey On 05/03/16 00:20, Benson Margulies wrote: The code below runs in Karaf. Is there any chance of a caller getting: No service was found. after this has executed? bus = BusFactory.newInstan

Is there anything asynchronous about starting a server?

2016-03-04 Thread Benson Margulies
The code below runs in Karaf. Is there any chance of a caller getting: No service was found. after this has executed? bus = BusFactory.newInstance().createBus(); // set the class loader so that the TCCL is reliably 'us' when we get called. bus.setExtension(bundleContext.get