Caching the remote reference

Discussions

EJB design: Caching the remote reference

  1. Caching the remote reference (2 messages)

    Some people suggest that the EJB home interface should be cache in the controller (e.g. Servlet) to avoid the JNDI lookup for each request. Should I cache the remote reference also?

    Threaded Messages (2)

  2. Caching the remote reference[ Go to top ]

    I am looking for some sample code for caching the Home Interface. I will appreciate if some one may point me in the right direction please.
          My E mail: knowledg_power at hotmail dot com
             Thanks.
                  Sincerely,
  3. Caching the remote reference[ Go to top ]

    If you want to "cache" the remote interface you should cache the handle of the remote interface. And get the remote interface back using the handle

    afair:

    getHandle
    getEJBObject(handle)