posted 20 years ago
Actually, static variables are not discouraged, they just have to be marked static final. As Pradeep said, this is to ensure proper behavior in clustered environments when multiple JVMs will be excuting ejb requests. Furthermore, allowing the use of static read-write variables could cause threading issues.
[ August 27, 2003: Message edited by: Chris Mathews ]