guarana.toolkit.adapter.jbi
Class AbstractJbiEntryAdapter
java.lang.Object
guarana.toolkit.adapter.jbi.AbstractJbiEntryAdapter
public abstract class AbstractJbiEntryAdapter
- extends Object
This class must be extended by the JBI Adapter for the EntryPort
.
- Since:
- Guaranį SDK 1.0.0
- Author:
- Rafael Z. Frantz
Method Summary |
IStubIn |
lookupCommunicator(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. |
AbstractJbiEntryAdapter
public AbstractJbiEntryAdapter()
lookupCommunicator
public IStubIn lookupCommunicator(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