How to inject a Spring bean from a batch (JSR-352) in Weblogic 12.2.1.4?
Dear,
I need some help.
I need to migrate couples of applications running in Weblogic 12.1.3 to Weblogic 12.2.1.4 (JEE7).
All applications are developed with Spring 4.x, some are also using JBatch with Spring Batch runtime, but now Weblogic 12.2.x brings its own runtime but it is based on CDI.
Of course our existing batches are using Spring beans (by injecting), therefore now the injections are not working anymore as the @Inject annotation are now managed by the CDI runtime and no more by Spring in that portion of the code.
My question is how now can I inject the spring beans in the batch components (reader, processor, write, listener(s),...). More generally how a Spring bean or context can be injected into a CDI bean?