A CTS2 Framework Service Plugin based on LexEVS.
Install the CTS2 Development Framework
Download and install in this order:
!!IMPORTANT!! For the LexEVS Service Plugin, when installing via the "Install/Update" button, leave the "Start Bundle” checkbox button unchecked. For all others, ensure it is checked.
After the plugin has been installed, navigate to the Configuration
tab of the Admin Console.
Verify the configuration information is correct. It is set up to use the NCI 6.0 Remote LexEVS Service.
Click 'Save,' and then start the LexEVS Service Plugin
CodeSystemVersion
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
.
There are several configuration files used to customize the service.
These will all be placed in the $USER_HOME/.cts2/[context]/config
directory.
Parameters:
osgi.suppress
- (true/false) Whether or not to suppress the the OSGi framework. Must betrue
.
Example - cts2-deployment.properties
osgi.suppress=true
Parameters:
service.pid
- The identifier of the LexEVS Service Plugin. Must beedu.mayo.cts2.framework.plugin.service.lexevs
lexevsRemoteApiUrl
- The URL of the Remote LexEVS API.useRemoteApi
- (true/false)true
to use the Remote LexEVS API,false
to use a local LexEVS installation.LG_CONFIG_FILE
- The path to the LexEVSlbconfig.props
file to use when running against a local LexEVS installationuriResolutionServiceUrl
- The URL to the URI Resolution Service, must behttps://informatics.mayo.edu/cts2/services/uriresolver/
Example - lexevs.properties
service.pid=edu.mayo.cts2.framework.plugin.service.lexevs
lexevsRemoteApiUrl=
useRemoteApi=false
LG_CONFIG_FILE=/Applications/LexEVS/resources/config/lbconfig.props
uriResolutionServiceUrl=https://informatics.mayo.edu/cts2/services/uriresolver/
service.pid
- Must beedu.mayo.cts2.framework.webapp.rest.config
allowHtmlRendering
- (true/false) Allow an HTML rendering of content.showStackTrace
- (true/false) Show the Java Stack Trace in the browser on Exception. This should befalse
, unless during development.showHomePage
- (true/false) Show a Home/Welcome page at the root context ("/").allowSoap
- (true/false) Turn on/off the SOAP API.supportEmail
- The email address to direct unexpected user encountered errors.alternateHomePage
- Home page URL to use instead of the standard framework home page.
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
service.pid
- Must beServerContext
server.root
- The base URL of the service as deployed (defaults tohttp://localhost/8080
.
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
Travis Build Status