The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001

Advertisement

Advertisement

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.

Message:

You ask too many questions boy!

Posted by Mike Hurley on May 05, 2001 at 7:05 AM

Why the restriction against using static variables inside EJB classes? Cause we like it that way. If they weren't static they'd be all over the place. There has got to be some order in this world Frank. If the docs say don't do then just don't do it. Why you always wanting to buck the system? You some sort of trouble maker or something?

> 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.






Replies:

Sponsored Links



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