I am building a JSF (2.2.13) application wired with CDI 2.0 (Weld 3.0.4). The app contains some real beans (frontend) and some business logic (backend).
Now the question is up to what part of the application CDI should be used?
- Obviously the frontend beans shall be managed by CDI
- My first guess was to inject the backend services (somehow wrapping them in an
@ApplicationScoped
scope) to those CDI-managed frontend beans - The backend then would be good old plain Java
I am a little bothered to use CDI in some parts of the application in in some not...