cts2 / lexevs-service

A CTS2 Framework Service Plugin based on LexEVS
Other
1 stars 3 forks source link

LexEVS CTS2 Service

A CTS2 Framework Service Plugin based on LexEVS.

Installation (Non-OSGi)

Clone the LexEVS Service Plugin: git clone https://github.com/cts2/lexevs-service.git

Set MAVEN_OPTS to insure there are no out of memory errors: export MAVEN_OPTS="-Xmx1000m -XX:MaxPermSize=500m"

Build the Plugin: mvn clean install

Create a $USER_HOME/.cts2/[context]/config directory. The context should be the name of your WAR file.

For example, if you install the Plugin into Tomcat as lexevs.war, the configuration directory for that service will be $USER_HOME/.cts2/lexevs/config.

Configuration Files

There are several configuration files used to customize the service. These will all be placed in the $USER_HOME/.cts2/[context]/config directory.

cts2-deployment.properties (Required)

Parameters:

Example - cts2-deployment.properties

osgi.suppress=true

lexevs.properties (Required)

Parameters:

Example - lexevs.properties

service.pid=edu.mayo.cts2.framework.plugin.service.lexevs
LG_CONFIG_FILE=/Applications/LexEVS/resources/config/lbconfig.props
uriResolutionServiceUrl=https://informatics.mayo.edu/cts2/services/uriresolver/

webapp-config.properties (Optional)

Example - webapp-config.properties

service.pid=edu.mayo.cts2.framework.webapp.rest.config
allowHtmlRendering=false
showStackTrace=false
showHomePage=false
allowSoap=false
supportEmail=support@yourservice.org
alternateHomePage=http://alternateHomepage.com
maxToReturn=100

server-context.properties (Optional)

Example - server-context.properties

service.pid=ServerContext
server.root=http://myservice.org/lexevs

The resulting directory structure should resemble:

$USER_HOME
  |_ .cts2
       |_ [context]
              |_ config
                    |_ cts2-deployment.properties (required)
                    |_ lexevs.properties (required)
                    |_ webapp-config.properties (optional)
                    |_ server-context.properties (optional)

Install the resulting WAR file in target/ to the webapps/ directory of a Tomcat installation.

Normally Tomcat will need to be started with JVM options set for increased heap size and permgen size: CATALINA_OPTS="-Xmx2048m -XX:MaxPermSize=128m

You will find more details in the following links:

Travis Build Status

Build Status