I have multiple OSGi bundles and would like to expose those bundles from different port. Basically bundles has REST API and I would like to run API's in different ports.
My REST API bundle jars is having jaxrs:server configuration.
<jaxrs:server id="services" address="/logger">
</jaxrs:server>
I can start the multiple connectors with configuration provided below.
<Call name="addConnector">
<Arg>
<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
<Set name="host">
<Property name="jetty.host" />
</Set>
<Set name="port">
<Property name="jetty.port" default="8282" />
</Set>
<Set name="maxIdleTime">300000</Set>
<Set name="Acceptors">2</Set>
<Set name="statsOn">false</Set>
<Set name="confidentialPort">8443</Set>
<Set name="lowResourcesConnections">20000</Set>
<Set name="lowResourcesMaxIdleTime">5000</Set>
<Set name="name">jettyConn2</Set>
</New>
</Arg>
</Call>