I know, this issue must have been discussed a thousand times...but i just noticed a strange behavior that confused me!
The para 24.1.2 (Programming restrictions )in
ejb Spec says-
An enterprise Bean must not use read/write static fields. Using read-only static fields is
allowed. Therefore, it is recommended that all static fields in the enterprise bean class be
declared as final. In a stateless session bean, I declared one instance variable as static and modified its value in
ejbCreate(). I was expecting that ejbc would give error for using non-final static field in a bean class.
but...it didn't!
The bean got deployed properly too. How? I think ejbc shpuld have complained for such
a case that is against ejb spec.....