Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected links that should have been relative instead of absolute.

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

Note
The instructions given below are applicable only for the users who are using standalone AIS.

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

  1. Go to ...

...

  1. <AdeptiaInstallfolder>/AdeptiaServer

...

  1. /ServerKernel

...

  1. /etc

...

  1. /jetty location.

...

  1. Open jetty.xml file.

...

  1. Define a custom port by adding

...

  1. the following section:

    Code Block
    <Call

...

  1.   name="addConnector">

...

  1. 
         <Arg>
          <New id="HttpsConnectorB" class="org.eclipse.jetty.server.ServerConnector">

...

  1. 
          <Arg name="server"><Ref refid="Server" /></Arg>

...

  1. 
          <Arg name="sslContextFactory"><Ref refid="sslContextFactory2" /></Arg>

...

  1. 
                <Arg name="factories">

...

  1. 
             <Array type="org.eclipse.jetty.server.ConnectionFactory">

...

  1. 
               <Item>
                 <New class="org.eclipse.jetty.server.HttpConnectionFactory">

...

  1. 
                   <Arg name="config"><Ref refid="httpConfig" /></Arg>

...

  1. 
                 </New>
               </Item>
               <Item>
                 <New class="org.eclipse.jetty.http2.server.HTTP2CServerConnectionFactory">

...

  1. 
                   <Arg name="config"><Ref refid="httpConfig" /></Arg>

...

  1. 
                 </New>
               </Item>
             </Array>
          </Arg>
            <Set name="name">HttpsConnectorB</Set>

...

  1. 
            <Set name="port"><SystemProperty name="abpm.webserver.https.port" default="8443"/></Set>

...

  1. 
           <Set name="idleTimeout"><Property name="solr.jetty.http.idleTimeout" default="120000"/></Set>

...

  1. 
           <Set name="soLingerTime"><Property name="solr.jetty.http.soLingerTime" default="-1"/></Set>

...

  1. 
           <Set name="acceptorPriorityDelta"><Property name="solr.jetty.http.acceptorPriorityDelta" default="0"/></Set>

...

  1. 
           <Set name="acceptQueueSize"><Property name="solr.jetty.http.acceptQueueSize" default="0"/></Set>

...

  1. 
           <Set name="reuseAddress">false</Set>

...

  1. 
          </New>

...

  1. 
        </Arg>

...

  1. 
      </Call>

Below are the following changes which are needs to do in jetty.xml file:-

...


  1. In the code block, update the following parameters:

    1. Update the value of New id for the id parameter in following block code:
      <New id="HttpsConnectorB" class="org.eclipse.jetty.server.ServerConnector"> 

...

    1. By default, the value of New id is "HttpsConnectorB".

...

    1. Mention the

...

    1. same New id value in the following block code:

...


    1.   <Set name="name">HttpsConnectorB</Set> 

...

    1. Set the port number in following block code:

...


...

    1. <Set name="port"><SystemProperty name="abpm.webserver.https.port" default="8443"/></Set>   

...

    1. For example, in case you want to configure 5443 as a custom port, update the code block as below:
      <Set name="port">5443</Set>  

  1. Save the file.

Changes in wsapi.xml file

  1. Go to ...

...

  1. <AdeptiaInstallfolder>/AdeptiaServer

...

  1. /ServerKernel

...

  1. /etc

...

  1. /jetty

...

  1. /contexts location.

...

  1. Open

...

  1. wsapi.xml file.

...

  1. Define a custom port by adding and updating the following section:

...



  1.  <Set name="virtualHosts">
        <Array type="String">
          <Item>@HttpConnectorA</Item>
        </Array>
      </Set>

    Mention id (which is defined in the jetty.xml file) in the following block code:

...


  1.   <Item>@HttpConnectorA</Item>  

...

  1.   Save the file

...

  1. .

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

Note

The port will be visible in the Select Port

...

list while creating or editing the REST Provider.

...

Select the port number other than the default port (ServerGUI port) while creating or editing a provider.

...

You can publish only one port at a time

...

.