远程调用的一些技术

  • RMI
  • Hessian 和 Burlap
  • HTTP
  • JAX-WS 和 Web Service

enter image description here

Spring 的远程调用

enter image description here

RMI

  • 导出服务

    @Bean
      public RmiServiceExporter rmiServiceExporter(Service service){
          RmiServiceExporter exporter = new RmiServiceExporter();
          exporter.setService(service);
          exporter.setServiceName("service");
          exporter.setServiceInterface(Service.class);
          exporter.setRegistryHost("ismy.wang");
          exporter.setRegistryPort(1999);
          return exporter;
      }
    
  • 装配服务

Hessian 和 Burlap

HttpInvoker

使用web服务

results matching " "

No results matching " "

results matching " "

No results matching " "