org.apache.geronimo.corba
Class CORBAHandleDelegate
java.lang.Object
org.apache.geronimo.corba.CORBAHandleDelegate
- All Implemented Interfaces:
- HandleDelegate
public class CORBAHandleDelegate
- extends Object
- implements HandleDelegate
See ejb spec 2.1, 19.5.5.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CORBAHandleDelegate
public CORBAHandleDelegate()
readEJBHome
public 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 HandleDelegate
- Parameters:
in
-
- Returns:
-
- Throws:
ClassNotFoundException
IOException
readEJBObject
public 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 HandleDelegate
- Parameters:
in
-
- Returns:
-
- Throws:
ClassNotFoundException
IOException
writeEJBHome
public void writeEJBHome(EJBHome ejbHome,
ObjectOutputStream out)
throws IOException
- Specified by:
writeEJBHome
in interface HandleDelegate
- Throws:
IOException
writeEJBObject
public void writeEJBObject(EJBObject ejbObject,
ObjectOutputStream out)
throws IOException
- Specified by:
writeEJBObject
in interface HandleDelegate
- Throws:
IOException
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.