File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
static mathods/variable inheritance
Thread safety of static variables in EJB
final static variables in beans?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013