Setting up SAS Service App and Tomcat as Services

1

Of course, you will need to stop Tomcat and SAS Services windows before performing these steps. Therefore it’s best to do after hours.

=============================================================

FIRST:
Running Remotely Deployed Services as a Windows Service

SAS 9.1.3 and higher provides the capability to run the remote SAS Services application as a Windows service. This capability is enabled through the use of the Java Service Wrapper from Tanuki Software, which is provided with SAS Foundation Services.

To install the remote SAS Services application as a Windows service, follow these steps:

Go to the directory that contains the deployment information for the remote SAS Services application. If you performed a planned (Advanced or Personal) installation and accepted the default path, then this information is located in a path similar to the following:

...Lev1\web\Deployments\RemoteServices

To determine the correct directory if you are not using the default path, check the value of the $SERVICES_REMOTE_DIR$ property in the install.properties file (which is located in the PortalConfigure subdirectory of the setup directory).

In the subdirectory WEB-INF, find the InstallRemoteServices.bat script and run it. The script installs a Windows service with the name SAS Remote Services.

You can now start the SAS Remote Services service from the Windows Services console.

(If the console says Manual, right click on the SAS Remote Services item and choose properties, click Automatic )

=============================================================
SECOND:
...Lev1\web\INSTALL_TOMCAT_SERVICE.bat

(If the console says Manual, right click on the Apache Tomcat item and choose properties, click Automatic )

=============================================================
THIRD: Check out http://support.sas.com/techsup/unotes/SN/015/015766.html
=============================================================
NOW … go to Services and verify that these are running.

Then you can LOG OFF the machine and everything will still work. Also if the machine is rebooted by your IT Department – no worries on going back in and restarting ‘cause they will be automatic.

Share

About Author

Angela Hall

Senior Technical Architect

Angela offers tips on using the SAS Business Intelligence solutions. She manages a team of SAS Fraud Framework implementers within the SAS Solutions On-Demand organization. Angela also has co-written two books, 'Building BI using SAS, Content Development Examples' & 'The 50 Keys to Learning SAS Stored Processes'.

1 Comment

  1. One note. I just went through this and the SAS rep said that the Tomcat service needs to have a dependancy on the SAS Remote service. IE. SAS Remote service needs to start before the TomCat service. This can be accomplished by changes to the registry for the TomCat.

Back to Top