org.openejb.corba
Class CORBAHandleDelegate
java.lang.Object
org.openejb.corba.CORBAHandleDelegate
- All Implemented Interfaces:
- javax.ejb.spi.HandleDelegate
- public class CORBAHandleDelegate
- extends Object
- implements javax.ejb.spi.HandleDelegate
See ejb spec 2.1, 19.5.5.1
- Version:
- $Revision: 446171 $ $Date: 2006-04-26 01:22:39 +0200 (Wed, 26 Apr 2006) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CORBAHandleDelegate
public CORBAHandleDelegate()
readEJBHome
public javax.ejb.EJBHome readEJBHome(ObjectInputStream in)
throws ClassNotFoundException,
IOException
- Called by home handles to deserialize stubs in any app server, including ones by other vendors.
The spec seems to imply that a simple cast of in.readObject() should work but in certain
orbs this does not seem to work and in.readObject returns a generic remote stub that needs
to be narrowed. Although we think this is likely an orb bug this code with narrow will
work in both circumstances.
- Specified by:
readEJBHome
in interface javax.ejb.spi.HandleDelegate
- Parameters:
in
-
- Returns:
-
- Throws:
ClassNotFoundException
IOException
readEJBObject
public javax.ejb.EJBObject readEJBObject(ObjectInputStream in)
throws ClassNotFoundException,
IOException
- Called by handles to deserialize stubs in any app server. See comment to readEJBHome.
- Specified by:
readEJBObject
in interface javax.ejb.spi.HandleDelegate
- Parameters:
in
-
- Returns:
-
- Throws:
ClassNotFoundException
IOException
writeEJBHome
public void writeEJBHome(javax.ejb.EJBHome ejbHome,
ObjectOutputStream out)
throws IOException
- Specified by:
writeEJBHome
in interface javax.ejb.spi.HandleDelegate
- Throws:
IOException
writeEJBObject
public void writeEJBObject(javax.ejb.EJBObject ejbObject,
ObjectOutputStream out)
throws IOException
- Specified by:
writeEJBObject
in interface javax.ejb.spi.HandleDelegate
- Throws:
IOException
Copyright © 1999-2006 OpenEJB. All Rights Reserved.