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.