The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Static variables in an EJB

Posted by Frank LaRosa on January 31, 2001 at 11:10 PM

Why the restriction against using static variables inside EJB classes? What about classes used by an EJB that are not the EJB class itself? I find it convenient to have statics that are initialized the first time the EJB is used, and they seem to work, so what's the problem? The docs say don't do it.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us