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

Jberet and Thorntail #129

Open
mistrz7 opened this issue May 8, 2020 · 2 comments
Open

Jberet and Thorntail #129

mistrz7 opened this issue May 8, 2020 · 2 comments

Comments

@mistrz7
Copy link

mistrz7 commented May 8, 2020

Hello,
I would like to create simple etl program using jberet and thorntail. I have created project and delivered code but I don't know how to configure database connection that will be using in property . I have configured connection to database in project-defaults.yml file like:
swarm:
datasources:
data-sources:
my_datasource:
driver-name: oracle
.....
It work's fine as jpa datasoure bo how to use it in batch xml file.

Regards
sw

@chengfang
Copy link
Contributor

chengfang commented May 8, 2020

Some time ago I created a small sample project using Thorntail and JBeret:
https://github.com/jberet/numbers-chunk-thorntail

but that does not use any datasource.

I haven't followed Thorntail for a while, so not familar what mechanism it supports.

Maybe you can try passing these datasource propertiesn as system properties (-Dxxx=xxx) as part of the command in your yaml file.

In your job xml you can reference these system properties as

#{systemProperties['x']}

@mistrz7
Copy link
Author

mistrz7 commented May 8, 2020

Hello,
Thanks for replay. I have to solve it not using system properties because passwd shouldn't be send this way.

Regards
sw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants