org.springframework.remoting.rmi

Class JndiRmiServiceExporter

    • Constructor Detail

      • JndiRmiServiceExporter

        public JndiRmiServiceExporter()
    • Method Detail

      • setJndiName

        public void setJndiName(java.lang.String jndiName)
        Set the JNDI name of the exported RMI service.
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws javax.naming.NamingException,
                                       java.rmi.RemoteException
        Description copied from interface: InitializingBean
        Invoked by the containing BeanFactory after it has set all bean properties and satisfied BeanFactoryAware, ApplicationContextAware etc.

        This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.

        Specified by:
        afterPropertiesSet in interface InitializingBean
        Throws:
        javax.naming.NamingException
        java.rmi.RemoteException
      • prepare

        public void prepare()
                     throws javax.naming.NamingException,
                            java.rmi.RemoteException
        Initialize this service exporter, binding the specified service to JNDI.
        Throws:
        javax.naming.NamingException - if service binding failed
        java.rmi.RemoteException - if service export failed
      • rebind

        public void rebind()
                    throws javax.naming.NamingException
        Rebind the specified service to JNDI, for recovering in case of the target registry having been restarted.
        Throws:
        javax.naming.NamingException - if service binding failed
      • destroy

        public void destroy()
                     throws javax.naming.NamingException,
                            java.rmi.RemoteException
        Unbind the RMI service from JNDI on bean factory shutdown.
        Specified by:
        destroy in interface DisposableBean
        Throws:
        javax.naming.NamingException
        java.rmi.RemoteException