Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94000073
50-add-medco-cell-datasources.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Dec 3, 03:43
Size
993 B
Mime Type
text/x-shellscript
Expires
Thu, Dec 5, 03:43 (2 d)
Engine
blob
Format
Raw Data
Handle
22699339
Attached To
R4444 MedCo Deployment
50-add-medco-cell-datasources.sh
View Options
#!/bin/bash
set -Eeuo pipefail
cat > "$JBOSS_WAR_DEPLOYMENTS/medco-ds.xml" <<EOL
<?xml version="1.0" encoding="UTF-8"?>
<datasources xmlns="http://www.jboss.org/ironjacamar/schema">
<datasource jta="false" jndi-name="java:/OntologyMedCoDS"
pool-name="OntologyMedCoDS" enabled="true" use-ccm="false">
<connection-url>jdbc:postgresql://$I2B2_DB_HOST:$I2B2_DB_PORT/$I2B2_DB_NAME?currentSchema=medco_ont</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
<driver>$PG_JDBC_JAR</driver>
<security>
<user-name>$I2B2_DB_USER</user-name>
<password>$I2B2_DB_PW</password>
</security>
<validation>
<validate-on-match>false</validate-on-match>
<background-validation>false</background-validation>
</validation>
<statement>
<share-prepared-statements>false</share-prepared-statements>
</statement>
</datasource>
</datasources>
EOL
Event Timeline
Log In to Comment