Skip to content

Commit

Permalink
Fixes for the ML startup error
Browse files Browse the repository at this point in the history
  • Loading branch information
Camelia-Orcid committed Oct 28, 2024
1 parent a895ef7 commit 4a68416
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
13 changes: 12 additions & 1 deletion orcid-activemq/src/main/resources/message-listener.properties
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,15 @@ org.orcid.message-listener.index.s3.search.max_elements=5
org.orcid.message-listener.index.summaries.bucket_name=v2.0-summaries-dev
org.orcid.message-listener.index.activities.bucket_name=v2.0-activities-dev
org.orcid.message-listener.index.summaries.v3.bucket_name=v3.0-summaries-dev
org.orcid.message-listener.index.activities.v3.bucket_name=v3.0-activities-dev
org.orcid.message-listener.index.activities.v3.bucket_name=v3.0-activities-dev


org.orcid.persistence.panoply.cleanup.production=false
# Panoply redshift database
org.orcid.core.utils.panoply.driver=com.amazon.redshift.jdbc.Driver
org.orcid.core.utils.panoply.maxPoolSize=20
org.orcid.core.utils.panoply.password=xxx
org.orcid.core.utils.panoply.idleConnectionTimeout=3600
org.orcid.core.utils.panoply.connectionTimeout=36000
org.orcid.core.utils.panoply.jdbcUrl=xxx
org.orcid.core.utils.panoply.username=xxx
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,24 @@
</bean>

<bean id="ORCIDMarshaller" class="org.orcid.utils.jersey.marshaller.ORCIDMarshaller" />

<!-- Panoply Redshift -->
<bean id="panoplyRedshiftDataSource" class="com.zaxxer.hikari.HikariDataSource" destroy-method="close">
<property name="driverClassName" value="\${org.orcid.core.utils.panoply.driver:com.amazon.redshift.jdbc.Driver}" />
<property name="jdbcUrl" value="\${org.orcid.core.utils.panoply.jdbcUrl}" />
<property name="username" value="\${org.orcid.core.utils.panoply.username}" />
<property name="password" value="\${org.orcid.core.utils.panoply.password}" />
<property name="maximumPoolSize" value="\${org.orcid.core.utils.panoply.maxPoolSize:5}" />
<property name="idleTimeout" value="\${org.orcid.core.utils.panoply.idleConnectionTimeout:3600}" />
<property name="connectionTimeout" value="\${org.orcid.core.utils.panoply.connectionTimeout:3600}" />
</bean>

<!-- Panoply JdbcTemplate Bean Definition -->
<bean id="panoplyJdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="panoplyRedshiftDataSource" />
</bean>

<!-- Redshift panoply -->
<bean id="panoplyClient" class="org.orcid.utils.panoply.PanoplyRedshiftClient" />

</beans>

0 comments on commit 4a68416

Please sign in to comment.