It has mentioned that usage of static fields are restricted in EJB. But when i created a non final static filed in Stateful ejb, it worked without any error.
So does that means container not giving any error with these kind of things? It is up to the developer to use it properly?
I know the reason for this is that in a distributed environment it is difficult to handle static fields if there are multiple JVMs.
It has mentioned that usage of static fields are restricted in EJB. But when i created a non final static filed in Stateful ejb, it worked without any error.
So does that means container not giving any error with these kind of things? It is up to the developer to use it properly?
I know the reason for this is that in a distributed environment it is difficult to handle static fields if there are multiple JVMs.
Thank you.
I am wrong it says "must not use". Then fine.
You can thank my dental hygienist for my untimely aliveness. So tiny:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop