Publishing Rest Ws Provider on a Custom Port(s) in GBI


You may want to publish a REST provider on a port other than the default GUI port. Also, may have a requirement in both a single node and multiple nodes (clustered) environment. To achieve this, GBI equips you with a feature to define a custom port and then publish the provider on that port. By doing this, you can have different web service providers running on different nodes.



The following section explains how to add a custom port and publish a provider on that port. Defining custom port in jetty.xml and wsapi.xml files.

Changes in jetty.xml file

  • Go to the location...<AdeptiaInstallfolder>/AdeptiaServer/ServerKernel/etc/jetty.
  • Open jetty.xml file.
  • Define a custom port by adding the following section:
<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
<Set name="name">HttpConnectorB</Set>
<Set name="port">8081</Set>
<Set name="maxIdleTime">300000</Set>
<Set name="Acceptors">2</Set>
<Set name="statsOn">false</Set>
<Set name="reuseAddress">false</Set>
<Set name="confidentialPort"><SystemProperty name="abpm.webserver.https.port" default="8443"/></Set>
<Set name="requestBufferSize">99999</Set>
<Set name="responseBufferSize">99999</Set>
<Set name="requestHeaderSize">99999</Set>
<Set name="responseHeaderSize">99999</Set>
<Set name="useDirectBuffers">false</Set>
<Set name="lowResourcesConnections">20000</Set>
<Set name="lowResourcesMaxIdleTime">5000</Set>


  • Now, in the above code block, update the following parameters:

1. Update the value of the name parameter with a unique HTTP Connector name like <Set name="name">HttpConnectorD</Set>. By default, its value is "HttpConnectorB".

2. Set the custom port number in the port parameter. For example, in case you want to configure 5443 as a custom port, update the code block like

<Set name="port">5443</Set> 

  • Save the file.


Changes in wsapi.xml file

  • Go to the location.. <AdeptiaInstallfolder>/AdeptiaServer/ServerKernel/etc/jetty/contexts.
  • Open wsapi.xml file.
  • Now, search for section "connectorNames" and un-comment it as shown below:
<Set name="connectorNames">
        <Array type="String">

here, mention the HTTP Connector name (defined in the jetty.xml file) as shown below:-


  • Save the file.

Once you have done the changes in both jetty.xml and wsapi.xml files, Restart the GBI Server.


Have more questions? Submit a request


Article is closed for comments.