Sunday, March 25, 2012

JDev/ADF sample - ADF BC AM Class Variables - Why To Avoid Them

  • ADF BC AM Class Variables - Why To Avoid Them. ADF BC AM class variables - not harmful thing from the first sight. Only until we remember how AM pooling works, keep in mind - AM instance can be reused by different users through AM pool. AM instance object will keep initialized AM class variables from one user to another. This means private data of one user, will be visible to another user. This is not a bug, it just bad development practice to use class variables inside AM instance, when pooling is enabled.
    Download - SecurityFormLogin_v3.zip

No comments: