© 2001 BEA Systems, Inc.

com.beasys.commerce.axiom.document.fast
Class SPIFastDocumentManagerImpl.WebLogicHomeHandle

com.beasys.commerce.axiom.document.fast.SPIFastDocumentManagerImpl.WebLogicHomeHandle
Enclosing class:
SPIFastDocumentManagerImpl

public static class SPIFastDocumentManagerImpl.WebLogicHomeHandle

A cluster-safe HomeHandle.

Since Handles don't fail-over in a cluster correctly, this handle first tries a delagate HomeHandle, then tries a JNDI home name.


Field Summary
protected  com.beasys.commerce.axiom.document.fast.HomeHandle homeHandle
          The delagate HomeHandle.
protected  java.lang.String jndiHomeName
          The JNDI home name.
 
Constructor Summary
SPIFastDocumentManagerImpl.WebLogicHomeHandle(javax.ejb.EJBHome home)
          Constructor from a home.
SPIFastDocumentManagerImpl.WebLogicHomeHandle(com.beasys.commerce.axiom.document.fast.HomeHandle homeHandle, java.lang.String homeName)
          Constructor.
 
Method Summary
 javax.ejb.EJBHome getEJBHome()
          Get the home for this home handle.
 

Field Detail

homeHandle

protected com.beasys.commerce.axiom.document.fast.HomeHandle homeHandle
The delagate HomeHandle.

jndiHomeName

protected java.lang.String jndiHomeName
The JNDI home name.
Constructor Detail

SPIFastDocumentManagerImpl.WebLogicHomeHandle

public SPIFastDocumentManagerImpl.WebLogicHomeHandle(com.beasys.commerce.axiom.document.fast.HomeHandle homeHandle,
                                                     java.lang.String homeName)
Constructor.
Parameters:
homeHandle - the delagate home handle.
homeName - the home JNDI name.

SPIFastDocumentManagerImpl.WebLogicHomeHandle

public SPIFastDocumentManagerImpl.WebLogicHomeHandle(javax.ejb.EJBHome home)
                                              throws java.rmi.RemoteException
Constructor from a home.

If the home is the WLS internal home, it's home name will be retrieved automatically.

Parameters:
RemoteException - thrown on an error getting any information.
Method Detail

getEJBHome

public javax.ejb.EJBHome getEJBHome()
                             throws java.rmi.RemoteException
Get the home for this home handle.

This will first try the delagate home handle, then try the JNDI home name.

Throws:
java.rmi.RemoteException - thrown on an error.

© 2001 BEA Systems, Inc.

Copyright © 2001 BEA Systems, Inc. All Rights Reserved