How to configure VaadinCDIServlet with web.xml using vaading 14 flow?

I have existing javaEE 8 project with EJB which I wanna use vaadin 14 flow with CDI possibilities.

Currently I am not able to inject EJB in the view. I get null.

Any suggestion is very welcome and appreciated?

ali akbar shahriari garaei:
I have existing javaEE 8 project with EJB which I wanna use vaadin 14 flow with CDI possibilities.

Currently I am not able to inject EJB in the view. I get null.

Any suggestion is very welcome and appreciated?

Solved it by adding @ApplicationScoped and no-args-constructor.