org.springframework.remoting.caucho.HessianProxyFactoryBean Java Examples

The following examples show how to use org.springframework.remoting.caucho.HessianProxyFactoryBean. 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: HessianClientConfig.java    From Spring with Apache License 2.0 5 votes vote down vote up
@Bean
public UserService userServiceHessian() {
    final HessianProxyFactoryBean factoryBean = new HessianProxyFactoryBean();
    factoryBean.setServiceInterface(UserService.class);
    factoryBean.setServiceUrl("http://localhost:8080/hessian/hessianInvoker/userService");
    factoryBean.afterPropertiesSet();
    return (UserService) factoryBean.getObject();
}
 
Example #2
Source File: ScoringHessianConfiguration.java    From ddd-strategic-design-spring-boot with Apache License 2.0 5 votes vote down vote up
@Bean
public HessianProxyFactoryBean scoringService() {
    HessianProxyFactoryBean scoringServiceClient = new HessianProxyFactoryBean();
    scoringServiceClient.setServiceUrl(scoringServer + "ScoringService");
    scoringServiceClient.setServiceInterface(ScoringService.class);
    return scoringServiceClient;
}
 
Example #3
Source File: HessianClient.java    From tutorials with MIT License 5 votes vote down vote up
@Bean
public HessianProxyFactoryBean hessianInvoker() {
    HessianProxyFactoryBean invoker = new HessianProxyFactoryBean();
    invoker.setServiceUrl("http://localhost:8080/booking");
    invoker.setServiceInterface(CabBookingService.class);
    return invoker;
}