The EJB 2.0 Restrictions
The list of restrictions is in no particular order and, although there can be some relationships between them, there are no implied dependencies. We’ll take them one by one and state the restriction and provide a brief explanation for the restriction. In the cases where a legal workaround is known, we’ll state one or more solutions to achieve the same results without violating the restriction.
Don’t Use Read/Write Static Fields
The EJB 2.0 Specification states that an enterprise bean must not use read/write static fields. When you declare a static field, you are stating that all instances of the class will share the same instance. The problem is that you are not guaranteed that all instances of an EJB are run within ...
Get Special Edition Using Enterprise JavaBeans™ 2.0 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.