A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
EJB and other Java EE Technologies
Ejbs and Static variables
Joined: Nov 07, 2000
May 16, 2003 11:36:00
I wanted to know,
1. Can we have static variables in Ejbs from
point of view
2. Does it affect the performance?
Your help is very much appreciated.
Joined: Jul 18, 2001
May 16, 2003 18:37:00
Static variables are allowed, however you should never write to them due to threading and clustering issues. It is good practice to make any static variables that you may use in your
It is sorta covered in the
JavaRanch Style Guide
subject: Ejbs and Static variables
final static variables in beans?
calling static translation methods from multiple EJBs in clustered environment
static mathods/variable inheritance
Thread safety of static variables in EJB
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014