/** * Initialize this service exporter, binding the specified service to JNDI. * @throws NamingException if service binding failed * @throws RemoteException if service export failed */ public void prepare() throws NamingException, RemoteException { if (this.jndiName == null) { throw new IllegalArgumentException("Property 'jndiName' is required"); } // Initialize and cache exported object. this.exportedObject = getObjectToExport(); invokePortableRemoteObject(exportObject); rebind(); }
@Override public void afterPropertiesSet() throws NamingException, RemoteException { prepare(); }
/** * Unbind the RMI service from JNDI on bean factory shutdown. */ @Override public void destroy() throws NamingException, RemoteException { if (logger.isDebugEnabled()) { logger.debug("Unbinding RMI service from JNDI location [" + this.jndiName + "]"); } this.jndiTemplate.unbind(this.jndiName); invokePortableRemoteObject(unexportObject); }
/** * Unbind the RMI service from JNDI on bean factory shutdown. */ @Override public void destroy() throws NamingException, RemoteException { if (logger.isDebugEnabled()) { logger.debug("Unbinding RMI service from JNDI location [" + this.jndiName + "]"); } this.jndiTemplate.unbind(this.jndiName); invokePortableRemoteObject(unexportObject); }
/** * Initialize this service exporter, binding the specified service to JNDI. * @throws NamingException if service binding failed * @throws RemoteException if service export failed */ public void prepare() throws NamingException, RemoteException { if (this.jndiName == null) { throw new IllegalArgumentException("Property 'jndiName' is required"); } // Initialize and cache exported object. this.exportedObject = getObjectToExport(); invokePortableRemoteObject(exportObject); rebind(); }
@Override public void afterPropertiesSet() throws NamingException, RemoteException { prepare(); }
/** * Unbind the RMI service from JNDI on bean factory shutdown. */ @Override public void destroy() throws NamingException, RemoteException { if (logger.isDebugEnabled()) { logger.debug("Unbinding RMI service from JNDI location [" + this.jndiName + "]"); } this.jndiTemplate.unbind(this.jndiName); invokePortableRemoteObject(unexportObject); }
/** * Initialize this service exporter, binding the specified service to JNDI. * @throws NamingException if service binding failed * @throws RemoteException if service export failed */ public void prepare() throws NamingException, RemoteException { if (this.jndiName == null) { throw new IllegalArgumentException("Property 'jndiName' is required"); } // Initialize and cache exported object. this.exportedObject = getObjectToExport(); invokePortableRemoteObject(exportObject); rebind(); }
@Override public void afterPropertiesSet() throws NamingException, RemoteException { prepare(); }