Jtest logo




Contents  Previous  Next  Index

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.


Contents  Previous  Next  Index

ParaSoft logo
(888) 305-0041 info@parasoft.com Copyright © 1996-2001 ParaSoft