Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Using Dependency Injection in WebDynpro

Hi,

is it possible to use Dependency Injection (@EJB,@PersistenceContext,@PersistenceUnit ) in a WebDynpro Contoller ?

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

HTH!

\-- Vladimir

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question