Announcement Announcement Module
No announcement yet.
RmiOutboundGateway + RmiProxyFactoryBean Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • RmiOutboundGateway + RmiProxyFactoryBean

    We have to transport a message from US server to London server. We thought of using Messaging Channels and ActiveMQ messaging sending and listening stuff. We did the code on our local machines and tested it with a local broker service.

    But, we have been told that ActiveMQ can't be installed on the London server. So, we need to resort to another method of doing it.

    We have been suggested to use RMI to do this. These are command line programs without any server like WebSphere and Weblogic.

    I have written a sample program to use RMIProxyFactoryBean which worked fine. However, it doesn't have inbound and outbound channels to send to and listen from like jms:inbound and outbound channel adapters. But, it seems like there is RmiOutbound and Inbound Gateway's can be used in liaison with RmiProxyFactoryBean. Please suggest a link or example to use both RmiOutboundGateway/InboundGateway in conjunction with RmiProxyFactoryBean.

    My context file after writing the latter part looks like this:

    	<bean id="helloWorldService" class="com.HelloWorldImpl">
    	<bean id="helloWorldServiceExporter" class="org.springframework.remoting.rmi.RmiServiceExporter">
    		<property name="serviceName" value="HelloWorldN" />
    		<property name="service" ref="helloWorldService" />
    		<property name="serviceInterface" value="com.HelloWorld" />
    		<property name="registryPort" value="9000" />
    		<property name="servicePort" value="9001" />
    	<bean id="helloWorldproxyService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
    		<property name="serviceUrl" value="rmi://localhost:9000/HelloWorldN" />
    		<property name="serviceInterface" value="com.HelloWorld" />
    	<bean id="helloWorldHandler" class="com.RMIClient">
    		<property name="helloWorld" ref="helloWorldproxyService" />
    Please suggest.