guarana.toolkit.adapter.jbi
Class AbstractJbiExitAdapter

java.lang.Object
  extended by guarana.toolkit.adapter.jbi.AbstractJbiExitAdapter

public abstract class AbstractJbiExitAdapter
extends Object

This class must be extended by the JBI Adapter for the ExitPort.

Since:
Guaranį SDK 1.0.0
Author:
Rafael Z. Frantz

Constructor Summary
AbstractJbiExitAdapter()
           
 
Method Summary
 IStubOut lookupOutCommunicator(String jndiName, String host, int port)
          Makes a lookup at the RMI registry and gets a referent to the In-Communicator exported by the Entry Port.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJbiExitAdapter

public AbstractJbiExitAdapter()
Method Detail

lookupOutCommunicator

public IStubOut lookupOutCommunicator(String jndiName,
                                      String host,
                                      int port)
                               throws RemoteException,
                                      NotBoundException,
                                      AccessException
Makes a lookup at the RMI registry and gets a referent to the In-Communicator exported by the Entry Port. If the lookup fails, the method wait for 100 ms and tries again up to max 10 times.

Parameters:
jndiName - JNDI name of the communicator.
host - The host for the remote registry.
port - The port on which the registry accepts requests.
Returns:
the stub for the In-Communicator.
Throws:
RemoteException - if any remote exception is raised during this method execution.
NotBoundException - if an attempt is made to lookup in the registry a name that has no associated binding.
AccessException - if the method was invoked from a non-local host, then an AccessException is thrown.


Guaranį DSL Home