# com.bea.content
ContentEJBHomeCache Class

public class ContentEJBHomeCache
extends `Object`

This class caches the initial context and the EJB Home so lookups for EJBs are faster. It's a standard J2EE design pattern for performance improvement, BUT it should only be used within specific components, since our EJBs are application-scoped, and we don't prevent multiple applications with the same name existing in a domain. It should still have static methods and a static collection to hold the EJBHome instances, so the calling components don't recreate this class each time. A Home class may exist more than once in the Map, since different components may reference it depending on the full JNDI name or by ejb-ref.

Hierarchy
  `Object`
  `ContentEJBHomeCache`

## Constructor Summary

ContentEJBHomeCache()

## Method Summary

`public static `Object`` | `lookup`(`String` jndiName, `Class` homeInterfaceClass) Return an instance of the EJB(Local)Home for the jndi name and class.

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Constructor Detail

### ContentEJBHomeCache

    public ContentEJBHomeCache()

## Method Detail

### lookup(String, Class) Method

    public static Object lookup(String jndiName,
                                Class homeInterfaceClass)
         throws NamingException

Return an instance of the EJB(Local)Home for the jndi name and class. Creates and stores this instance if it's not already cached.

#### Exceptions

``NamingException``