|
| 1 | +# Using WebAPI with InterSystems IRIS support |
| 2 | + |
| 3 | +## Building WebAPI |
| 4 | + |
| 5 | +To build WebAPI with InterSystems IRIS support, you can simply use the `webapi-iris` profile |
| 6 | +when building WebAPI with Maven: |
| 7 | + |
| 8 | +```Shell |
| 9 | +mvn -Pwebapi-postgresql,webapi-iris clean package |
| 10 | +``` |
| 11 | + |
| 12 | +or on Windows PowerShell: |
| 13 | +```Shell |
| 14 | +mvn "-Pwebapi-postgresql,webapi-iris" clean package |
| 15 | +``` |
| 16 | + |
| 17 | +This will automatically download and package a recent version of the InterSystems IRIS JDBC |
| 18 | +driver from Maven Central. |
| 19 | + |
| 20 | +Alternatively, the JDBC driver for InterSystems IRIS can be found in the `dev/java/lib/1.8/` |
| 21 | +subfolder of your IRIS installation, or as a download from InterSystems Cloud Services portal. |
| 22 | + |
| 23 | + |
| 24 | +## Sample configuration |
| 25 | + |
| 26 | +When configuring Atlas / WebAPI to access CDM on IRIS over a secure connection, your source |
| 27 | +registration looks like this: |
| 28 | +```SQL |
| 29 | +INSERT INTO webapi.source (source_id, source_name, source_key, source_connection, source_dialect, username, password) |
| 30 | + VALUES (<#>, 'OHDSI IRIS Database', 'IRIS', 'jdbc:IRIS://<hostname>.elb.us-west-2.amazonaws.com:443/USER/:::true', |
| 31 | + 'iris', '<username>','<password>'); |
| 32 | +``` |
| 33 | + |
| 34 | +For a non-encrypted, local connection, this may look like: |
| 35 | +```SQL |
| 36 | +INSERT INTO webapi.source (source_id, source_name, source_key, source_connection, source_dialect, username, password) |
| 37 | + VALUES (<#>, 'OHDSI IRIS Database', 'IRIS', 'jdbc:IRIS://localhost:1972/USER/', 'iris', '_SYSTEM_','SYS'); |
| 38 | +``` |
| 39 | + |
| 40 | + |
| 41 | +## References |
| 42 | + |
| 43 | +For more information on how to connect to InterSystems IRIS or InterSystems IRIS Cloud SQL, please see: |
| 44 | +* [Connecting your applications to Cloud SQL](https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GDRIVE_cloudsql) |
| 45 | +* [Troubleshooting connection issues](https://docs.intersystems.com/services/csp/docbook/DocBook.UI.Page.cls?KEY=ACTS) |
| 46 | +* [InterSystems fork for OHDSI Broadsea](https://github.com/isc-krakshith/InterSystems-Broadsea/) |
0 commit comments