Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ADF Dependency Injection Best Practices

2684774Jun 3 2014 — edited Aug 5 2014

Hello,

I am using ADF 11.1.1.5.

I would like to know what is the Best Practice to use Dependency Injection in an ADF Application. For instance, after having registered an application-scoped Bean "AppBean" in a task-flowing (using the <managed-bean> tag), how can I inject its instance in another bean (lets say session-scoped) "MyBean"?

In "myBean", I am wondering if it is possible to inject "appBean" programmatically (using JSR 330 for instance) like:

@Inject

private AppBean bean;

Many thanks in advance for your time and help,

Jérémie

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 2 2014
Added on Jun 3 2014
18 comments
7,971 views