Skip to content
Advertisement

Spring 5.x and CDI 2.x Integration Options

Considering Spring’s 5.x baseline and CDI’s baseline 2.x, what more viable options should I consider to integrate them into a project with JSF 2.3, since JSF 2.3 is coupled with the CDI? Bridges? Custom Bean Factories? Others?

Advertisement

Answer

We use bean producers to access Spring objects in CDI. As in the architecture we used there is an interface layer between the UI and the server/business, this integration was facilitated. Integration is performed as follows.

Cdi Factory from the view/ui layer.

JavaScript

The CdiSpringUtils Class.

JavaScript

The ApplicationContextProvider Class.

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement