private void readObject(ObjectInputStream istream) throws IOException, ClassNotFoundException { HandleDelegate handleDelegate; try { handleDelegate = HandleDelegateUtil.getHandleDelegate(); } catch ( NamingException ne ) { throw new EJBException("Unable to lookup HandleDelegate", ne); } ejbObject = handleDelegate.readEJBObject(istream); } }
private void readObject(ObjectInputStream istream) throws IOException, ClassNotFoundException { HandleDelegate handleDelegate; try { handleDelegate = HandleDelegateUtil.getHandleDelegate(); } catch ( NamingException ne ) { throw new EJBException("Unable to lookup HandleDelegate", ne); } ejbObject = handleDelegate.readEJBObject(istream); } }
private void readObject(ObjectInputStream istream) throws IOException, ClassNotFoundException { HandleDelegate handleDelegate; try { handleDelegate = HandleDelegateUtil.getHandleDelegate(); } catch ( NamingException ne ) { throw new EJBException("Unable to lookup HandleDelegate", ne); } ejbObject = handleDelegate.readEJBObject(istream); } }
private void readObject(ObjectInputStream oistream) throws IOException, ClassNotFoundException { EJBObject obj = getHandleDelegate().readEJBObject(oistream); this.ior = getOrb().object_to_string((org.omg.CORBA.Object) obj); this.stubClass = obj.getClass(); }
/** * Specific implementation of deserialization. * Must call HandleDelegate.readEJBObject, as specified in 19.5.5.1 of spec EJB 2.1 * @param in The input Stream from where is read the object. * @throws IOException error when reading object. * @throws ClassNotFoundException - */ private void readObject(final java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { HandleDelegate hdld; logger.log(Level.FINE, ""); try { hdld = Utility.getHandleDelegate(); } catch (NamingException e) { logger.log(Level.SEVERE, "Cannot get HandleDelegate", e); throw new IOException("Cannot get HandleDelegate"); } EJBObject obj = hdld.readEJBObject(in); try { this.ior = Utility.getORB().object_to_string((org.omg.CORBA.Object) obj); } catch (Exception e) { logger.log(Level.SEVERE, "JHandle.readObject()", e); throw new RemoteException("JHandle.readObject(): " + e, e); } }