JAMS 6.x Help
Installing the JAMS REST API

Prerequisites

Installation Steps

Start by installing the Microsoft Web Deployment Tool with Typical installation options.

Next, enable the Web Server IIS Role through the Server Configuration screen.

 Ensure the following components are enabled within the Application Development:

Download the REST API .zip file. After extracting the REST API installer, start the Command Prompt as an Administrator and issue the following command:

Deploy REST API Command
Copy Code
.\JAMSite.deploy.cmd /Y

 

Common Configuration

The JAMS Rest API ships with a sample configuration file, Common.Sample, located in C:\inetpub\wwwroot\JAMS. 

Save a copy of Common.Sample in C:\inetpub\wwwroot\JAMS and name the copy "Common.Config". JAMS will reference this file for configuration settings.

Edit the newly created Common.Config file as necessary for the given environment:

  1. Copy the ConnectionString values from the Common.Config file in C:\Program Files\MVPSI\JAMS\Scheduler to the newly created Common.Config file.
  2. If the JAMS Site is installed within a Domain, set the ContextType value to "Domain" and ContextName value to the domain itself. (In the image below, the domain is "JAMS")
  3. If the JAMS Site is not installed within a domain, set ContextType value to "Machine" and ContextName value to the name of the machine. 
  4. If the JAMS Web Client is installed on a different server than the JAMS Scheduler Server, set "SchedulerName" and "SchedulerPort" values accordingly.
    If the scheduler is not on another server, setting values for SchedulerName and SchedulerPort will cause issues.
  5. If the JAMS REST API/Web Client is installed on a different server than the JAMS Scheduler Server AND a failover is not configured, the key
    <add key="EnableRemoteAccess" value="true" />
    must be added to the Common.config file on the JAMS Server, located by default at C:\Program Files\MVPSI\JAMS\Scheduler\Common.config. This will open port 4773, allowing the web client to communicate with the scheduler. In an environment with a Failover configured, port 4773 will already be open. After configuring the JAMS Server common.config file, restart the JAMS Server service.
  6. If the JAMS REST API/Web Client is installed on a different server than the JAMS Scheduler Server, the JAMS fat client must be installed on the web server. The client can be downloaded here. The Web Server and Scheduler Server must be running the same version of the fat client.
  7. If the JAMS REST API/Web Client is installed on a different server than the JAMS Scheduler Server, users must grant the Web Server full permissions to the jamsrequests Queue on the Scheduler Server. Follow our article to grant access to the MSMQ, using the naming format MyWebServer$.

 

App Pool Settings

Add the user running the App Pool to the JAMSApp Role on the JAMS Database created during the initial installation. This will give proper permissions to the JAMS Database.

NOTE: It may be necessary to give the DefaultAppPool the JAMSApp Role in SQL.

Users are recommended to run DefaultAppPool under LocalSystem for local machine installations.

For domain installations, it may be necessary to run the DefaultAppPool as NetworkService.

If JAMS services are running as a domain account, it is also recommended to run the DefaultAppPool as that same domain account.

Restart IIS Services.

 

Documentation

After installing the REST API components, you can then view the ASP.NET Header Example and Swagger Example sites by entering the following URL’s in a browser:

http://JAMSServerName/JAMS/swagger

http://JAMSServerName/JAMS/

 

The above two sites provide examples of headers that can be passed to make the API call.

 

 


Topic updated: 3/14/2017
©2017 MVP Systems Software, Inc. All Rights Reserved.

Send comments on this topic.