Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOUD-2297] - Support Quartz configuration with Oracle and another D… #51

Merged
merged 1 commit into from Oct 22, 2018

Conversation

spolti
Copy link
Member

@spolti spolti commented Jun 7, 2018

…atabases

Signed-off-by: Filippe Spolti fspolti@redhat.com

Thanks for submitting your Pull Request!

Please make sure your PR meets the following requirements:

  • Pull Request title is properly formatted: [CLOUD-XYA] Subject
  • Pull Request contains link to the JIRA issue
  • Pull Request contains description of the issue
  • Pull Request does not include fixes for issues other than the main ticket
  • Attached commits represent units of work and are properly formatted
  • You have read and agreed to the Developer Certificate of Origin (DCO) (see CONTRIBUTING.md)
  • Every commit contains Signed-off-by: Your Name <yourname@example.com> - use git commit -s

QUARTZ_DELEGATE_CLASS="org.quartz.impl.jdbcjobstore.oracle.OracleDelegate"
# Oracle classes needs to be accessible by the quartz, in this case oracle driver needs to be added on jboss-deployment-structure.xml file
if [ "x${QUARTZ_DRIVER}" != "x" ]; then
sed -i "s|<\!--EXTRA_DEPENDENCY-->|<module name=\"deployment.${QUARTZ_DRIVER}\"/>\n <\!--EXTRA_DEPENDENCY-->|" $JBOSS_HOME/standalone/deployments/kie-server.war/WEB-INF/jboss-deployment-structure.xml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This expects the driver to be installed as a deployment, however, the driver could also be installed as a module
e.g., as described here

https://blog.openshift.com/conntecting-to-an-external-oracle-database/

it would perhaps be better to explicitly ask for a "QUARTZ_DRIVER_MODULE" , to let the user provide anything, not necessarily with "deployment." prefix (and describe it in the documentation)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@spolti Can you please address @maschmid 's concern above?

Copy link
Member Author

@spolti spolti Jul 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maschmid I agree with you, thanks, and sry for the delay, I completely forgot about it =/
@errantepiphany sure thing.

@spolti spolti added the on hold ⏳ work completed but not ready to be merged until some other condition is met label Aug 1, 2018
@spolti spolti force-pushed the CLOUD-2297 branch 3 times, most recently from 622ad2e to 0cc36ed Compare September 19, 2018 20:33
sed -i "s|USE \[enter_db_name_here\]|USE ${databaseName}|" $JBOSS_HOME/bin/quartz_tables_sqlserver.sql

elif [[ "${KIE_SERVER_PERSISTENCE_DIALECT}" == "org.hibernate.dialect.DB2"* ]]; then
if [ "x${KIE_SERVER_PERSISTENCE_SCHEMA}" != "x" ]; then
Copy link

@maschmid maschmid Sep 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it is strictly DB2 specific (even I have only seen it used there).

Also it isn't strictly quartz specific, isn't there a more appropritte place to put it in the scripts?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, Good point, I do remember to use it a long time ago with oracle.
I'll move this change next to the place where the kie.persistence.ds and dialect is configured.

errantepiphany
errantepiphany previously approved these changes Sep 24, 2018
@spolti spolti removed the on hold ⏳ work completed but not ready to be merged until some other condition is met label Sep 24, 2018
…atabases

Fix ctf tests.

Signed-off-by: Filippe Spolti <fspolti@redhat.com>
@spolti
Copy link
Member Author

spolti commented Oct 20, 2018

@errantepiphany can you please re-approve?

@spolti spolti merged commit ced0b9e into jboss-container-images:master Oct 22, 2018
@spolti spolti deleted the CLOUD-2297 branch October 22, 2018 16:47
@spolti spolti restored the CLOUD-2297 branch October 22, 2018 16:47
@spolti spolti deleted the CLOUD-2297 branch June 23, 2023 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants