Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

When users use standalone AIS then, in that case, users have to do the configuration related to the custom port in jetty.xml and wsapi.xml files.

Steps to configure the custom port in jetty.xml and wsapi.xml files:-
1. Go to ...<AdeptiaSuiteInstallfolder>/AdeptiaServer\ServerKernel\etc\jetty location.

2. Open jetty.xml file.
3. Define a custom port by adding and updating the following section:

<Call  name="addConnector">
     <Arg>
      <New id="HttpsConnectorB" class="org.eclipse.jetty.server.ServerConnector">
      <Arg name="server"><Ref refid="Server" /></Arg>
      <Arg name="sslContextFactory"><Ref refid="sslContextFactory2" /></Arg>
            <Arg name="factories">
         <Array type="org.eclipse.jetty.server.ConnectionFactory">
           <Item>
             <New class="org.eclipse.jetty.server.HttpConnectionFactory">
               <Arg name="config"><Ref refid="httpConfig" /></Arg>
             </New>
           </Item>
           <Item>
             <New class="org.eclipse.jetty.http2.server.HTTP2CServerConnectionFactory">
               <Arg name="config"><Ref refid="httpConfig" /></Arg>
             </New>
           </Item>
         </Array>
      </Arg>
        <Set name="name">HttpsConnectorB</Set>
        <Set name="port"><SystemProperty name="abpm.webserver.https.port" default="8443"/></Set>
       <Set name="idleTimeout"><Property name="solr.jetty.http.idleTimeout" default="120000"/></Set>
       <Set name="soLingerTime"><Property name="solr.jetty.http.soLingerTime" default="-1"/></Set>
       <Set name="acceptorPriorityDelta"><Property name="solr.jetty.http.acceptorPriorityDelta" default="0"/></Set>
       <Set name="acceptQueueSize"><Property name="solr.jetty.http.acceptQueueSize" default="0"/></Set>
       <Set name="reuseAddress">false</Set>
      </New>
    </Arg>
  </Call>

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

a) Mention new id for the id parameter in following block code
<New id="HttpsConnectorB" class="org.eclipse.jetty.server.ServerConnector"> 
Bydefault, it is " HttpsConnectorB".

b) Mention the id (which is mentioned in the first step) in the following block code:-
  <Set name="name">HttpsConnectorB</Set> 

c) Mention port number in following block code:-
 <Set name="port"><SystemProperty name="abpm.webserver.https.port" default="8443"/></Set>   

4. Save to file
5. Go to ...<AdeptiaSuiteInstallfolder>/AdeptiaServer\ServerKernel\etc\jetty\contexts location.

6. Open the wsapi.xml file.
7. Define a custom port by adding and updating the following section:  

 <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:-
  <Item>@HttpConnectorA</Item>  

8. Save the file
9. Restart the Server.

Once you have done the changes in the jetty.xml and wsapi.xml files, the port will be visible in the Select Port drop-down list while creating or editing the REST Provider.

10. 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.

11. Click Yes, Publish it to confirm.
Once published, a confirmation message is displayed.

  • No labels