/** * 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 { logger.log(Level.FINE, ""); HandleDelegate hdld; try { hdld = Utility.getHandleDelegate(); } catch (NamingException e) { logger.log(Level.SEVERE, "Cannot get HandleDelegate", e); throw new IOException("Cannot get HandleDelegate"); } try { ejbHome = hdld.readEJBHome(in); } catch (ClassNotFoundException e) { logger.log(Level.SEVERE, "Cant read EJBHome:", e); throw e; } catch (IOException e) { logger.log(Level.SEVERE, "Cant read EJBHome:" + e); throw e; } }
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); } ejbHome = handleDelegate.readEJBHome(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); } ejbHome = handleDelegate.readEJBHome(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); } ejbHome = handleDelegate.readEJBHome(istream); } }
private void readObject(final ObjectInputStream oistream) throws IOException, ClassNotFoundException { final EJBHome obj = getHandleDelegate().readEJBHome(oistream); this.ior = getOrb().object_to_string((org.omg.CORBA.Object) obj); this.stubClass = obj.getClass(); }