org.springframework.remoting.caucho.HessianServiceExporter Java Examples

The following examples show how to use org.springframework.remoting.caucho.HessianServiceExporter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ScoringApplication.java    From ddd-strategic-design-spring-boot with Apache License 2.0 6 votes vote down vote up
@Bean(name = "/ScoringService")
public HessianServiceExporter scoringHessianService(ScoringService scoringService) {
    HessianServiceExporter hessianServiceExporter = new HessianServiceExporter();
    hessianServiceExporter.setService(scoringService);
    hessianServiceExporter.setServiceInterface(ScoringService.class);
    return hessianServiceExporter;
}
 
Example #2
Source File: ServiceRegisterPostProcessor.java    From Ratel with Apache License 2.0 5 votes vote down vote up
private HessianServiceExporter createHessianExporterService(Object bean) {
    HessianServiceExporter hessianServiceExporter = new RatelHessianServiceExporter();
    hessianServiceExporter.setService(decorateWithMonitoring(bean, getPublishInterface(bean)));
    hessianServiceExporter.setServiceInterface(getPublishInterface(bean));
    hessianServiceExporter.prepare();
    return hessianServiceExporter;
}
 
Example #3
Source File: ServiceRegisterPostProcessor.java    From Ratel with Apache License 2.0 4 votes vote down vote up
private HessianServiceExporter exportService(Object bean, String beanName) {
    final HessianServiceExporter hessianExporterService = createHessianExporterService(bean);
    configurableListableBeanFactory.registerSingleton(RATEL_PATH + beanName, hessianExporterService);
    return hessianExporterService;
}
 
Example #4
Source File: Server.java    From tutorials with MIT License 4 votes vote down vote up
@Bean(name = "/booking") RemoteExporter hessianService(CabBookingService service) {
    HessianServiceExporter exporter = new HessianServiceExporter();
    exporter.setService(bookingService());
    exporter.setServiceInterface(CabBookingService.class);
    return exporter;
}