| 
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bea.content.ContentEJBHomeCache
public class ContentEJBHomeCache
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.
| Constructor Summary | |
|---|---|
ContentEJBHomeCache()
 | 
|
| Method Summary | |
|---|---|
static Object | 
lookup(String jndiName,
       Class homeInterfaceClass)
Return an instance of the EJB(Local)Home for the jndi name and class.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ContentEJBHomeCache()
| Method Detail | 
|---|
public static Object lookup(String jndiName,
                            Class homeInterfaceClass)
                     throws NamingException
NamingException
  | 
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||