Staic calls in Ejb


EJB programming & troubleshooting: Staic calls in Ejb

  1. Staic calls in Ejb (6 messages)

    Can i use static call inside my ejb? is it advisable ?

    Threaded Messages (6)

  2. of course[ Go to top ]

    u can not do that
    bc the life of the ejb is not controlled by you ,but the continer
  3. Staic calls in Ejb[ Go to top ]

    There is no problem with calling static methods in EJB. If the static code reads static member fields, you shold not depend on them being shared by all EJB components. That is, two EJBs may access the same static field but see different values (either because they use a different class loader or because they are loaded in seperate VMs).

  4. Class loader and VM[ Go to top ]

    I think even if two class loaders load two different EJBs still run in the same VM.
  5. Class loader and VM[ Go to top ]

    but different namespaces.
  6. Staic calls in Ejb[ Go to top ]

    Hey gal...
    could you explain this concept in detail??

    thanks in advance,
  7. Staic calls in Ejb[ Go to top ]

    What concept? The fact that EJBs should not depend on sharing semantics of static fields, or how classloaders can make two beans in a VM see different values for a static field?