cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: Is there anything asynchronous about starting a server?
Date Sun, 06 Mar 2016 12:08:55 GMT
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:
>
> <html><body>No service was found.</body></html>
>
> 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.getBundle().adapt(BundleWiring.class).getClassLoader(),
> ClassLoader.class);
>          JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
>          sf.setBus(bus);
>          sf.setServiceBean(this);
>          sf.setAddress("/worker");
>          server = sf.create();
>


Mime
View raw message