HandleDelegate interface is implemented by the EJB container.
It is used by portable implementations of javax.ejb.Handle and
javax.ejb.HomeHandle.
It is not used by EJB components or by client components.
It provides methods to serialize and deserialize EJBObject and
EJBHome references to streams.
The HandleDelegate object is obtained by JNDI lookup at the
reserved name "java:comp/HandleDelegate".
| Modifier and Type | Method and Description |
|---|---|
| public EJBHome | Returns: The deserialized EJBHome reference.The input stream. istream)Deserialize the EJBHome reference corresponding to a HomeHandle. |
| public EJBObject | Returns: The deserialized EJBObject reference.The input stream. istream)Deserialize the EJBObject reference corresponding to a Handle. |
| public void | writeEJBHome(EJBHome
The EJBHome reference to be serialized. ejbHome, ObjectOutputStream The output stream. ostream)Serialize the EJBHome reference corresponding to a HomeHandle. |
| public void | writeEJBObject(EJBObject
The EJBObject reference to be serialized. ejbObject, ObjectOutputStream The output stream. ostream)Serialize the EJBObject reference corresponding to a Handle. |
| readEJBHome | back to summary |
|---|---|
| public EJBHome readEJBHome(ObjectInputStream istream) throws IOException, ClassNotFoundException Deserialize the EJBHome reference corresponding to a HomeHandle. The
| |
| readEJBObject | back to summary |
|---|---|
| public EJBObject readEJBObject(ObjectInputStream istream) throws IOException, ClassNotFoundException Deserialize the EJBObject reference corresponding to a Handle. The
| |
| writeEJBHome | back to summary |
|---|---|
| public void writeEJBHome(EJBHome ejbHome, ObjectOutputStream ostream) throws IOException Serialize the EJBHome reference corresponding to a HomeHandle. This method is called from the
| |
| writeEJBObject | back to summary |
|---|---|
| public void writeEJBObject(EJBObject ejbObject, ObjectOutputStream ostream) throws IOException Serialize the EJBObject reference corresponding to a Handle. This method is called from the
| |