Oracle Weblogic Server (MOSC)

MOSC Banner

How to inject a Spring bean from a batch (JSR-352) in Weblogic 12.2.1.4?

edited May 8, 2020 5:05AM in Oracle Weblogic Server (MOSC) 1 commentAnswered

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?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center