Configure the Service Layer Application Server

JVM Settings

  1. Navigate to Servers>Server Types>WebSphere application servers.
  2. Select the ServiceLayer application server.
  3. Expand Java and Process Management.
  4. Select Process Definition.
  5. Select Java Virtual Machine.
  6. In the Classpath text box, enter the location of the Service layer property files.
  7. Example: /opt/oracle/servicelayer/conf/ or c:\oracle\servicelayer\conf\ 
    Note: Be sure to include the trailing slash (/ or ) character.

     

  8. Set Initial Heap Size to 512.
  9. Set Maximum Heap Size to 2048.
  10. In the Generic JVM Arguments text box, enter the following arguments, replacing the location of each file (highlighted) with the correct location for the configuration.
  11. Note: You may find it easier to copy the text below to a text editor and make the necessary changes there, then copy and paste it into the JVM Arguments text box.

    -Duser.language=en -Duser.region=US 
    -Djava.net.preferIPv4Stack=true 
    -Djava.net.preferPv6Addresses=false 
    -javaagent:/opt/oracle/servicelayer/libs/spring-instrument-5.2.9.RELEASE.jar 
    -Dtangosol.coherence.override=/opt/oracle/servicelayer/conf/service-coherence-config.xml 
    -Dtangosol.coherence.cacheconfig=/opt/oracle/servicelayer/conf/-service-coherence-cache-config.xml 
    -Dtangosol.coherence.mode=prod 
    -Djava.util.logging.config.file=/opt/oracle/servicelayer/conf/logging.properties
    Windows Machine
    -Duser.language=en -Duser.region=US -Djava.net.preferIPv4Stack=true 
    -Djava.net.preferPv6Addresses=false 
    -javaagent:C:\servicelayer\libs\spring-instrument-5.0.7.RELEASE.jar 
    -Dtangosol.coherence.override=C:\servicelayer\conf\service-coherence-config.xml 
    -Dtangosol.coherence.cacheconfig=C:\servicelayer\conf\service-coherence-cache-config.xml 
    -Dtangosol.coherence.mode=prod 
    -Djava.util.logging.config.file=C:\servicelayer\conf\logging.properties
  12. Click OK.
  13. Follow the below steps to disable IBM JAXRS Engine.
    1. Navigate to Servers -> Server Types -> WebSphere application servers
    2. Select the ServiceLayer application server
    3. In the Server Infrastructure area, select Java and Process Management -> Process definition.
    4. In the Server Infrastructure area, select Process Definition.
    5. In the Additional Properties area, select Java VirtualMachine.
    6. In the Additional Properties area, select Custom Properties.
    7. Select the New box.
    8. In the Name entry field, type:
    9. com.ibm.websphere.jaxrs.server.DisableIBMJAXRSEngine

      com.ibm.websphere.webservices.UseWSFEP61ScanPolicy

    10. In the Value entry field, type true.
    11. Select OK.
    1. Follow the below steps to disable WebSphere Application Server JPA initialization, because JPA initialization is done from ServiceLayer.
    1. Navigate to Servers -> Server Types -> WebSphere application servers
    2. Select the ServiceLayer application server
    3. In the Server Infrastructure area, select Java and Process Management -> Process definition.
    4. In the Server Infrastructure area, select Process Definition.
    5. In the Additional Properties area, select Java VirtualMachine.
    6. In the Additional Properties area, select Custom Properties.
    7. Select the New box.
    8. In the Name entry field, type:
    9. com.ibm.websphere.persistence.ApplicationsExcludedFromJpaProcessing

    10. In the Value entry field, type the names of the applications to be excluded from JPA processing. If there are multiple applications, separate each with the ":" character. If you wish to specify all applications, simply type the "*" character.
    11. Select OK.
  14. Follow the below steps for JAX-RS 2.0Spec, for accessing the rest services.
  1. Navigate to Servers>>Server Types>> Websphere Application Server and select the required Application Server. Ex: Middleware servers > ServiceLayer > Default JAXRS provider settings
  2. Select Configuration tab
  3. Under Container Services, select Default JAXRS provider settings.
  4. Change the JAX-RS Provider type to 2.0spec and click OK.

Configure the Listening Port

  1. Select Servers>Server Types>WebSphere application servers.
  2. Select the ServiceLayer server.
  3. In the Communications section, select Ports.
  4. Note the port listed for WC_defaulthost.
  5. If the port number needs to be changed, select the WC_defaulthost port.
  6. Modify the Port text box as needed.
  7. Click OK.

 Configure the Virtual Host

  1. Select Environment > Virtual Hosts.
  2. Click default_host.
  3. Click Host Aliases.
  4. Click New.
  5. Enter the port assigned for WC_defaulthost in the previous listening port section.
  6. Click OK.