-
static modifiers in EJB (2 messages)
- Posted by: Hari
- Posted on: November 12 2002 05:48 EST
Can any body tell me the reason why can not we use final modifiers in ejb.Threaded Messages (2)
- static modifiers in EJB by Dion Almaer on November 12 2002 08:24 EST
- static modifiers in EJB by Jens Schumann on November 12 2002 15:35 EST
-
static modifiers in EJB[ Go to top ]
- Posted by: Dion Almaer
- Posted on: November 12 2002 08:24 EST
- in response to Hari
You can use static finals, but you can't use static.
The restriction is there so you don't shoot yourself in the foot. You may thing that by having a static, you have a singleton, but in fact that may not be the case depending on how many JVMs are running, the class loaders, etc etc. -
static modifiers in EJB[ Go to top ]
- Posted by: Jens Schumann
- Posted on: November 12 2002 15:35 EST
- in response to Dion Almaer
See this thread why you need to be careful using statics at all.