org.springframework.integration.adapter.rmi
Class RmiGateway

java.lang.Object
  extended by org.springframework.integration.gateway.MessagingGatewaySupport
      extended by org.springframework.integration.gateway.SimpleMessagingGateway
          extended by org.springframework.integration.adapter.AbstractRemotingGateway
              extended by org.springframework.integration.adapter.rmi.RmiGateway
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, MessageBusAware, MessagingGateway, MessageHandler

public class RmiGateway
extends AbstractRemotingGateway
implements org.springframework.beans.factory.InitializingBean, MessageHandler

A gateway adapter for RMI-based remoting.

Author:
Mark Fisher

Field Summary
private  java.lang.String registryHost
           
private  int registryPort
           
private  org.springframework.remoting.support.RemoteInvocationExecutor remoteInvocationExecutor
           
private  java.lang.String requestChannelName
           
static java.lang.String SERVICE_NAME_PREFIX
           
 
Constructor Summary
RmiGateway(MessageChannel requestChannel)
          Create an RmiGateway that sends to the provided request channel.
 
Method Summary
 void afterPropertiesSet()
           
 void setRegistryHost(java.lang.String registryHost)
           
 void setRegistryPort(int registryPort)
           
 void setRemoteInvocationExecutor(org.springframework.remoting.support.RemoteInvocationExecutor remoteInvocationExecutor)
           
 
Methods inherited from class org.springframework.integration.adapter.AbstractRemotingGateway
handle, setExpectReply
 
Methods inherited from class org.springframework.integration.gateway.SimpleMessagingGateway
receive, receiveAndForward, send, sendAndReceive, sendAndReceiveMessage, setMessageBus, setMessageCreator, setMessageMapper, setReplyChannel, setReplyMapCapacity, setReplyTimeout, setRequestChannel
 
Methods inherited from class org.springframework.integration.gateway.MessagingGatewaySupport
getMessageExchangeTemplate, setRequestTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.integration.handler.MessageHandler
handle
 

Field Detail

SERVICE_NAME_PREFIX

public static final java.lang.String SERVICE_NAME_PREFIX
See Also:
Constant Field Values

requestChannelName

private final java.lang.String requestChannelName

registryHost

private volatile java.lang.String registryHost

registryPort

private volatile int registryPort

remoteInvocationExecutor

private volatile org.springframework.remoting.support.RemoteInvocationExecutor remoteInvocationExecutor
Constructor Detail

RmiGateway

public RmiGateway(MessageChannel requestChannel)
Create an RmiGateway that sends to the provided request channel.

Parameters:
requestChannel - the channel where messages will be sent, must not be null.
Method Detail

setRegistryHost

public void setRegistryHost(java.lang.String registryHost)

setRegistryPort

public void setRegistryPort(int registryPort)

setRemoteInvocationExecutor

public void setRemoteInvocationExecutor(org.springframework.remoting.support.RemoteInvocationExecutor remoteInvocationExecutor)

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.rmi.RemoteException
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.rmi.RemoteException