Java Code Examples for org.springframework.remoting.support.RemoteInvocationFactory

Following code examples demonstrate how to use org.springframework.remoting.support.RemoteInvocationFactoryfrom spring-framework. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use org.springframework.remoting.support.RemoteInvocationFactoryand various code implementation of this class.

    public IngridientService createUserServiceLink() {
        RmiProxyFactoryBean rmiProxyFactoryBean = new ServiceAwareRmiProxyFactoryBean();
        rmiProxyFactoryBean.setServiceInterface(IngridientService.class);
        rmiProxyFactoryBean.setRemoteInvocationFactory(remoteInvocationFactory);
        rmiProxyFactoryBean.afterPropertiesSet();
        return (IngridientService) rmiProxyFactoryBean.getObject();
    } 


    public RecipeService createEquipmentServiceLink() {
        RmiProxyFactoryBean rmiProxyFactoryBean = new ServiceAwareRmiProxyFactoryBean();
        rmiProxyFactoryBean.setServiceInterface(RecipeService.class);
        rmiProxyFactoryBean.setRemoteInvocationFactory(remoteInvocationFactory);
        rmiProxyFactoryBean.afterPropertiesSet();
        return (RecipeService) rmiProxyFactoryBean.getObject();
    } 

Advertisement
Javadoc
Strategy interface for creating a RemoteInvocation from an AOP Alliance org.aopalliance.intercept.Me

thodInvocation.

Used by org.springframework.remoting.rmi.RmiClientInterceptor (for RMI invokers) and by org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor. @author Juergen Hoeller @since 1.1 @see DefaultRemoteInvocationFactory @see org.springframework.remoting.rmi.RmiClientInterceptor#setRemoteInvocationFactory @see org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor#setRemoteInvocationFactory

Read More
Advertisement