EJB.NFS
Declare all "static" fields in the EJB component as "final"
Description
This rule flags any non-final "static" field in a Bean class.
Declaring all "static" fields in the EJB component as "final" ensures consistent runtime semantics so that EJB containers have the flexibility to distribute instances across multiple JVMs.
Reference
Sanjay Mahapatra, "Programming restrictions on EJB." JavaWorld, August 2000.
|