org.springframework.integration.adapter.rmi
Class RmiGateway
java.lang.Object
org.springframework.integration.gateway.MessagingGatewaySupport
org.springframework.integration.gateway.SimpleMessagingGateway
org.springframework.integration.adapter.AbstractRemotingGateway
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
Constructor Summary |
RmiGateway(MessageChannel requestChannel)
Create an RmiGateway that sends to the provided request channel. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
.
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