Tuesday, June 12, 2018

Oracle ADF bean memory scopes thefollowing diagram shows an overview of the managed bean memory scopes, and the corresponding expression language references, supported by Oracle ADF. See "What You May Need to Know About Memory Scope for Task Flows" at Creating a Task Flow for additional information.

Oracle ADF bean memory scopes

The following diagram shows an overview of the managed bean memory scopes, and the corresponding expression language references, supported by Oracle ADF. See "What You May Need to Know About Memory Scope for Task Flows" at Creating a Task Flow for additional information.



A best practice for managed beans that is often (and I admit easily) overlooked is to implement the Java Serializable interface for beans in session, pageFlow and view scope. 

You wont recognize the absence of Serializable before running your application in a fail over environment. 

As it fits into this context: Note that managed beans can inherit from a parent. So you may want to design a base managed bean class that contains helper functions you often need and that also implements Serializable. Then, with a little change to your coding guidelines, that managed beans must extend the base bean, you ensure your application's managed beans are always serializable.

Note that under the Tools | Preferences | Audit | Profiles entry, Oracle JDeveloper has an audit rule to find managed beans that are not serializable



No comments:

Post a Comment