A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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
I agree. Here's the link:
subject: Ejbs and Static variables
calling static translation methods from multiple EJBs in clustered environment
Thread safety of static variables in EJB
static mathods/variable inheritance
final static variables in beans?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014