Deploying CONNECT from Binaries

Software Requirements

Software

Versions

CONNECT Binary Packages

CONNECT Binaries by Release

Application Server

WebSphere Enterprise 8.5.5.3, WebLogic 12c (12.1.1, 12.1.2 and 12.2.1), JBoss EAP 7, WildFly 8.2.1

Relational Database

Any ANSI SQL92 compliant relational database.
(For example: MySQL, Oracle, and DB2. We test with MySQL 5.1.x)

Recommended Test Tools (optional)

SoapUI 5.3

Throughout this document, we use <VERSION> to indicate the version of the software downloaded and APP SERVER implies the type of supported Application Server.


Install MySQL

The CONNECT gateway and the reference implementation of the Adapters use a MySQL database by default. The programmatic access to this database is done using Hibernate. When doing the initial installation of the Gateway and Adapter, it is recommended that MySQL be installed and that the system be verified. After it has been created and verified, other relational databases can be used in place of MySQL by altering the appropriate entries in the Hibernate configuration files for those projects that are accessing the database. Directions for configuring Hibernate to use other databases are not defined in this document.

Create Database and Tables

Run the following scripts to set up the CONNECT databases:

  • CONNECT\Product\target\CONNECT-<VERSION>\DBScripts\nhincdb\dropall.sql
  • CONNECT\Product\target\CONNECT-<VERSION>\DBScripts\nhincdb\nhincdb.sql
  • CONNECT\Product\target\CONNECT-<VERSION>\DBScripts\nhincdb\populateTestData.sql

Windows/DOS commands for running the MySQL scripts are detailed here:

cd <binary-location>/CONNECT-<VERSION>/DBScripts/nhincdb
mysql -u {$user} --password={$password} < dropall.sql
mysql -u {$user} --password={$password} < nhincdb.sql
mysql -u {$user} --password={$password} < populateTestData.sql

Unzip the Binary

CONNECT-<VERSION>-<App Server> - CONNECT ear available with all exchange services PD,DQ,DR,DS,AD and X12.

Item

Zip Location

Description

CONNECT-<App SERVER>-<VERSION>.ear

<binary-location>/CONNECT-<VERSION>-<APP SERVER>/CONNECT-<APP SERVER>/<VERSION>

This is the ear file used to deploy CONNECT to a particular application server.

CONNECTAdminGUI-<VERSION>.war<binary-location>/CONNECT-<VERSION>-<APP SERVER>/CONNECTAdminGUI/<VERSION>This is the war file used to deploy System Administration Module to application server

MySQL scripts

<binary-location>/CONNECT-<VERSION>/DBScripts/nhincdb

These are the scripts needed to create the application required database and tables. The test data that are required by application smoke testing are also populated using these scripts.

Application Server properties files

<binary-location>/CONNECT-<VERSION>/Properties

These are the properties files required to configure the Application Server to run CONNECT

Generate a self-signed certificate and create key stores and trust stores

Execute the following commands (via command line) to create and store the certificate:

keytool -v -genkey -keyalg RSA -keysize 2048 -keystore gateway.jks -keypass changeit -storepass changeit -validity 365 -alias gateway -dname "cn=localhost"
keytool -v -export -rfc -alias gateway -file localhost.cer -keystore gateway.jks -keypass changeit -storepass changeit
keytool -v -import -keypass changeit -noprompt -trustcacerts -alias localhost -file localhost.cer -keystore cacerts.jks -storepass changeit

Create Direct Keystore and truststores

This step is needed only if the adopter is deploying CONNECT-DIRECT-<VERSION>-<APP SERVER> ear.

Direct anchors and truststores can be configured using AdminGUI Direct Configuration pages (Refer AdminGUI manual).

If you are implementing Direct via keystores (Refer AdminGUI manual), the following stores are required.

  • anchors.jks - to store the trust anchors of trusted HISPs.
  • example-store.jks - to store the public keys of trusted HISPs.
  • example-key.jks - to store the local HISP private key.

Please see the DirectCore README.md for additional information around certificates for Direct. The DirectCore README contains references to setting up certificates in DNS, as well as signing certificates with a self-signed Certificate Authority (CA). Please see the following commands for creating the Direct keystores and truststores.  These commands will help get CONNECT deployed successfully, but don't forget to import your CA and your signed certificate per the references in the README. 

keytool -v -genkey -keyalg RSA -keysize 2048 -keystore example-key.jks -keypass changeit -storepass changeit -validity 365 -alias direct.example.com -dname "cn=direct.example.com"
keytool -v -export -rfc -alias direct.example.com -file example.cer -keystore example-key.jks -keypass changeit -storepass changeit
keytool -v -import -keypass changeit -noprompt -trustcacerts -alias direct.example.com -file example.cer -keystore example-store.jks -storepass changeit
keytool -v -import -keypass changeit -noprompt -trustcacerts -alias direct.example.com -file example.cer -keystore anchors.jks -storepass changeit

If the server was started during server installation, an adopter must restart the server now.

Deploy App Server

Test the Installation - Validation Suite