Exemple #1
0
 def __del__(self):
     """
     When the service exporter goes out of scope and is garbage collected, the
     service must be deregistered.
     """
     from springpython.remoting.pyro import Pyro4DaemonHolder
     Pyro4DaemonHolder.deregister(self.service_name, self.service_host, self.service_port)
Exemple #2
0
 def __del__(self):
     """
     When the service exporter goes out of scope and is garbage collected, the
     service must be deregistered.
     """
     from springpython.remoting.pyro import Pyro4DaemonHolder
     Pyro4DaemonHolder.deregister(self.service_name, self.service_host,
                                  self.service_port)
Exemple #3
0
    def after_properties_set(self):
        import Pyro4
        from springpython.remoting.pyro import Pyro4DaemonHolder
        if self.service is None: raise Exception("service must NOT be None")
        if self.service_name is None: raise Exception("service_name must NOT be None")
        if self.service_host is None: raise Exception("service_host must NOT be None")
        if self.service_port is None: raise Exception("service_port must NOT be None")
        self.logger.debug("Exporting %s as a Pyro service at %s:%s" % (self.service_name, self.service_host, self.service_port))
	wrapping_obj = PyroWrapperObj(self.service)
        Pyro4DaemonHolder.register(wrapping_obj, self.service_name, self.service_host, self.service_port)
Exemple #4
0
 def after_properties_set(self):
     import Pyro4
     from springpython.remoting.pyro import Pyro4DaemonHolder
     if self.service is None: raise Exception("service must NOT be None")
     if self.service_name is None:
         raise Exception("service_name must NOT be None")
     if self.service_host is None:
         raise Exception("service_host must NOT be None")
     if self.service_port is None:
         raise Exception("service_port must NOT be None")
     self.logger.debug(
         "Exporting %s as a Pyro service at %s:%s" %
         (self.service_name, self.service_host, self.service_port))
     wrapping_obj = PyroWrapperObj(self.service)
     Pyro4DaemonHolder.register(wrapping_obj, self.service_name,
                                self.service_host, self.service_port)