Srikanth, please take a look at the cxf documenation at [1]. Just put the required address in the according field. As you can see in [2], the address field might contain a different port.
regards, Achim [1] - http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-Blueprint [2] - http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-ConfiguringJAX-RSservicesprogrammatically 2014-10-07 16:37 GMT+02:00 Scott Lewis <[email protected]>: > On 10/7/2014 2:24 AM, Srikanth Hugar wrote: > >> Hello, >> >> I have multiple REST API's developed using karaf, jetty, cxf. >> I want to provide access to some API's only within internal office >> network and some API's to everyone. >> > > I suggest using OSGI Remote Services (chapter 100 in enterprise > specification). RS allows standardized export/distribution of services > (APIs) for remote access. Each service can specify a 'config type' for > the distribution. The provider identified by this config type can (e.g.) > use different network interfaces, use different protocols, restrict access, > etc., allowing each service API to be exported 'appropriately'. > > ECF [1][2] has an open architecture allowing custom distribution providers > to be easily created, all of which automatically implement the R6 > specifications. Here [3] is a first tutorial that shows how to create a > new RS distribution provider. We are actively working on other > examples/tutorials. > > Scott > > [1] http://www.eclipse.org/ecf > [2] http://wiki.eclipse.org/ECF#OSGi_Remote_Services > [3] http://wiki.eclipse.org/Tutorial:_Creating_a_RESTful_ > Remote_Service_Provider > > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Software Architect / Project Manager / Scrum Master
