Technology Network Community
Oracle Database
Fusion Middleware
Development Tools
Server & Storage Systems
Enterprise Management
Berkeley DB Family
Cloud Computing
Big Data
Business Intelligence
Migration and Modernization
E-Business Suite
PeopleSoft Enterprise
JD Edwards World
JD Edwards EnterpriseOne
User Productivity Kit Pro (UPK) and Tutor
Governance, Risk & Compliance (GRC)
Master Data Management (MDM)
Oracle CRM On Demand
On Demand: SaaS and Managed Applications
AutoVue Enterprise Visualization
Agile PLM
Endeca Experience Management
Fusion Applications
Archived Forums



JDeveloper and ADF

JDEVELOPER 10G, ADF BC: Passivate static instance variables in AM?

I understand the need to passivate/activate instance variables but what about static instance variables within an application module?  Thanks, Wes

Static variables - being class variables and not instance variables - persist without a need for passivation. Is there a particular reason or scenario why to use static variables? You have to consider that since all AM instances will share it, changing it in one AM instance - i.e. one user session - will affect all other AM instances - i.e. all other user sessions! You also have to consider the implications of multithreading when attempting to modify the static variable.

thanks Nick, that answered my querstion. these vars are also final and used to circumvent hard coding strings for helper methods.

Related Links

JDev with Oracle Application Server or 10133
Code for getting the selected row in ADF Table 11G prod
coding error
Reflecting the value of the logged in user in an af:inputText Column
JDeveloper 11g and Swing
How to Use Swing-ADF in a Three-Tier-Archiitecture
EJB3.0 + ADF + SWING ?
Strange Behavior of <af:inputListOfValues>
h:message doesn't show up in UI for JDeveloper 11g
global validation for date input field
Cannot run application XXXXX due to error deploying to DefaultServer
Jdeveloper run target url
Problem deploying bpel process to oc4j_soa container on separate server
New to Jdeveloper Needs HELP PLEASE...
JDev11g - Using dates in Bind Variables - data model error when run test