- 
                Notifications
    You must be signed in to change notification settings 
- Fork 7
fix lightmin-jpa-application #5
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
Conversation
…ository and fix path to H2 init script)
| Hi @imod Thanks and Greetings | 
| @tuxdevelop please allow me a question: is it really required/expected one has to configure two datasources to get lightmin working with JPA? https://github.com/tuxdevelop/spring-batch-lightmin-samples/blob/master/lightmin-jpa-application/src/main/java/org/tuxdevelop/sample/jpa/batch/configuration/ApplicationConfiguration.java | 
| Hi @imod, I adapted the demo in the branch: In order to make it work, the spring batch repo must be a map If you change this, Spring Batch and JPA are conflicting using the same datasource. Side note: In my personal opinion, it just feels natural to have two datasources with different configurations (also two databases in the best scenario) to separate the runtime/configuration data (Spring Batch/Lightmin) and the business data (JPA entities). | 
| many thanks! don't know why you think Spring Batch is the issue - before we used lightmin we never had to configure two datasoruces to make it work. I am able to reproduce this with your sample application if I disable automatic job execution: and when I start a job via Lightmin Launcher, I get this:  | 
| Hi @imod, I will let you, when a first draft is available. | 
| @tuxdevelop awesome 💯 | 
fix lightmin-jpa-application: