static modifiers in EJB

Discussions

EJB programming & troubleshooting: static modifiers in EJB

  1. static modifiers in EJB (2 messages)

    Can any body tell me the reason why can not we use final modifiers in ejb.

    Threaded Messages (2)

  2. static modifiers in EJB[ Go to top ]

    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.
  3. static modifiers in EJB[ Go to top ]

    See this thread why you need to be careful using statics at all.