Comments (2)
Batch jobs are defined in xml format and thus all batch job configurations are expressed in string-based values. I think this is a pretty fundamental part of the batch spec (JSR 352), though I have to admit this does impose some restrictions on batch applications, for instance, there is no typed non-string objects for configuration.
From a technical point of view, java.util.Properties are used in various parts of the spec to hold job parameters, partition properties, etc. This also implies string-based keys and values are expected. Since java.util.Properties is a subclass of java.util.Hashtable, so you can still call its put method to add non-string values, but this value may very likely be ignored.
from jsr352.
To inject object types into batch artifacts with more flexibility, you may want to consider using CDI. WE use CDI injections in some of the batch artifacts in jberet-support modules, for instance,
from jsr352.
Related Issues (20)
- user guide HOT 2
- Support Java 17 HOT 10
- Injection of batch artifact properties does not work HOT 10
- Job versioning does not appear to be supported in JBeret HOT 1
- Error using Oracle DB as default job repository HOT 2
- sync SECURITY.md with wildfly/SECURITY.md HOT 1
- There are `com.caucho.quercus.Quercus` related exception throw in the `scripting` test.
- Currently the `jberet-2.x.yml` only tests on `macos` and `windows` and no `ubuntu`
- Update the CODEOWNERS file HOT 4
- Enable Support to get DB Username/Password from enivonment variable for jberet.properties HOT 5
- Fix the random test failures on ubuntu HOT 3
- disable Caucho and PHP script tests
- Fix the random test failure of `purgeInMemoryRepository`
- fix the random test failure: `jobExecutionIdFromIncludeRunningOnes`
- Write a blog post for the new feature: Enable Support to get DB Username/Password from environment variable for `jberet.properties` HOT 1
- Add a `layer-spec` similar to the ones in `resteasy-spring` HOT 3
- Add deployment tests into the project by using the provisioned WildFly server with the update-to-date project module(by using Galleon `feature-pack` or WildFly Channel).
- Upgrade to use JUnit 5
- jberet-core logging database credentials
- jberet.properties: extract other database configuration from environment variables
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsr352.