Im wanting to a mix of https / http and probably different realms. cxf dosgi seems to bring in the big guns for such a simple thing.. I mean currently its only 3 lines of code.. if we goto 10 lines for https its still okay.
I believe it should be possible without spring..Or does CXF have a hard tied spring dependency i've overlooked.? On Fri, Oct 7, 2016 at 11:00 PM, Christian Schneider < [email protected]> wrote: > If you use DS then you should take a look at CXF-DOSGi it allows to avoid > the manual code for creating the the service. > See: https://github.com/apache/cxf-dosgi/tree/master/samples/ssl > > On the server side you can simply configure pax-web to use ssl. Then you > can use a relative url to make cxf use the HttpService. > Alternatively you can also use a https url but I am not sure how to > configure keystores and similar in this case. > > Christian > > 2016-10-07 17:15 GMT+02:00 nino martinez wael < > [email protected]> > : > > > Hi > > > > How do I switch to HTTPS? Currently I have this: > > > > JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean(); > > sf.setResourceClasses(WhiteLabelEndPoint.class); > > sf.setAddress("http://localhost:7521/oak"); > > server = sf.create(); > > > > I am not using spring and are having a little trouble seeing how to > > configure the bus for https as all examples are pointing towards the > > springbusfactory? > > > > > > PS i am using OSGI with Karaf as container and Declarative services for > > injection. > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > > > > -- > -- > Christian Schneider > http://www.liquid-reality.de > <https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e > 46&URL=http%3a%2f%2fwww.liquid-reality.de> > > Open Source Architect > http://www.talend.com > <https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e > 46&URL=http%3a%2f%2fwww.talend.com> > -- Best regards / Med venlig hilsen Nino Martinez
