guarana.toolkit.adapter.rmi
Class RMIExitAdapter
java.lang.Object
guarana.toolkit.adapter.rmi.AbstractRMIAdapter
guarana.toolkit.adapter.rmi.RMIExitAdapter
- All Implemented Interfaces:
- IExitAdapter
public class RMIExitAdapter
- extends AbstractRMIAdapter
- implements IExitAdapter
An RMI adapter that can be used in active exit ports to push messages into passive entry ports.
- Since:
- Guaranį SDK 1.2.0
- Author:
- Rafael Z. Frantz
Method Summary |
void |
write(Message<?> message)
Writes the message to the passive resource. |
RMIExitAdapter
public RMIExitAdapter(String jndiName,
String host,
int port)
throws RemoteException
- Constructs a new RMI Adapter for Exit Ports.
This adapter allows to push messages inside Entry Ports.
- Parameters:
jndiName
- JNDI name of the communicator of the Entry Port.host
- The host for the remote registry.port
- The port on which the registry accepts requests.
- Throws:
RemoteException
- if any remote exception is raised during this method execution.
write
public void write(Message<?> message)
throws AdapterException
- Writes the message to the passive resource.
- Specified by:
write
in interface IExitAdapter
- Parameters:
message
- The outbound message.
- Throws:
AdapterException
- to report any problems during the method execution.
Guaranį DSL Home