Operations

This section describes miscellaneous 3DComment operations.

This task shows you how to:

Start and Stop External TomEE+ on Windows/Linux

Windows:

<externalTomEEInstallPath>\bin\startup.bat on Windows

<externalTomEEInstallPath>\bin\shutdown.bat on Windows

Linux:

<externalTomEEInstallPath>/bin/startup.sh on Linux

<externalTomEEInstallPath>/bin/shutdown.sh-force on Linux

Configuring External TomEE+ Windows Service

Using an external TomEE+ on Windows as a service requires some additional configuration.

Edit the TomEE+ windows service settings by running the following command (with administrator rights):

<3DCommentInstallPath>\win_b64\code\command\ExternalTomEE_updateService.bat <TomEEServiceName>

This command line updates the external TomEE+ service registry.
Note:
  • Executing this command line several times creates duplicate setting entries in the registry.
  • The 3DComment uninstallation does not clean the external TomEE+ service registry.

Refer to the TomEE+ Windows service documentation page for editing and cleaning service settings stored at the following locations in the Windows registry:

  • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\<TomEEServiceName>\Parameters
  • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\<TomEEServiceName>\Parameters\Java
Note: For more information, see the Apache TomEE Windows Service documentation.

Configure the 3DEXPERIENCE platform with a Single FQDN

To install the 3DEXPERIENCE platform with a single FQDN, you must have one cookie name per service to handle session affinity, and avoid getting some service cookies overridden by other cookies. In that case, you need to update the configuration after the 3DComment service installation, to send the cookie name to the shared configuration.

  1. Edit 3DComment securityContext.xml file:

    For external TomEE+ on Linux, go to <externalTomEEInstallPath>/webapps/3dcomment/WEB-INF/classes/securityContext.xml

    For external TomEE+ on Windows, go to <externalTomEEInstallPath>\webapps\3dcomment\WEB-INF\classes\securityContext.xml

  2. Update these two properties inside the beans casAuthenticationFilterForLogin, casAuthenticationFilter and casValidationFilter.

    <property name="serverIdCookieName" value="3DCOMMENTSERVERID" />

    <property name="serverIdParamName" value="3dcommentserverid" />

  3. Start and stop the external TomEE+ as described in this section.

Configure the Header Name Used for the Session Affinity

x-dsp-client-node is the default header name and is hardcoded in the code of the filters. To change the name of this header, apply the following procedure.

  1. Edit 3DComment securityContext.xml file:

    Add the following line:<property name="originalClientNodeHeaderName" value= "[YOUR_NEW_HEADER_NAME]" /> in the casAuthenticationFilterForLogin, casAuthenticationFilter, and casValidationFilter beans sections.

    For external TomEE+ on Linux, go to <externalTomEEInstallPath>/webapps/3dcomment/WEB-INF/classes/securityContext.xml

    For external TomEE+ on Windows, go to <externalTomEEInstallPath>\webapps\3dcomment\WEB-INF\classes\securityContext.xml

  2. Start and stop the external TomEE+ as described in this section.