Using Dependency Injection in WebDynpro
is it possible to use Dependency Injection (@EJB,@PersistenceContext,@PersistenceUnit ) in a WebDynpro Contoller ?
Vladimir Pavlov replied
No, it's not supported in Web Dynpro.
The Web Dynpro programming model suggests that one should use one of the available [Web Dynpro models|http://help.sap.com/saphelp_nwce10/helpdata/en/44/e407c0802f65ffe10000000a1553f7/frameset.htm] to integrate with the different types of backend systems (e.g. the EJB model for integration with EJB services and relational databases using JPA).
The following tutorial might also be handy: http://help.sap.com/saphelp_nwce10/helpdata/en/45/f7f744aea471fae10000000a1553f6/frameset.htm