Question

I am working on a CXF based web service in Jboss Fuse environment. Is it okay if I use the default org.osgi.service.http.port=8181 defined in the pax.web.cfg or should I always specify an explicit port in my cxf endpoints?

For the first option, my cxf endpoint would look like:

<cxf:cxfEndpoint id="myWebService.endpoint"
    address="/services/WebService/1.0"
    ...

For the second option, it would look like:

<cxf:cxfEndpoint id="myWebService.endpoint"
    address="http://0.0.0.0:{port}/services/WebService/1.0"
    ...

Is it allowed to use port 8181 for all my CXF web services?

Était-ce utile?

La solution

It is totally possible to use default service port for web service address. Looks like only when want to apply SSL, we should do that with httpj:engine settings for server side SSL.

Link to Fuse HTTPS settings

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top