guarana.toolkit.adapter.jbi
Class JbiAsyncSolicitorAdapter

java.lang.Object
  extended by guarana.toolkit.adapter.jbi.JbiAsyncSolicitorAdapter
All Implemented Interfaces:
IAsyncSolicitorAdapter

public class JbiAsyncSolicitorAdapter
extends Object
implements IAsyncSolicitorAdapter

A JBI Adapter to be used in solicitor ports.

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

Constructor Summary
JbiAsyncSolicitorAdapter(String jndiName, Properties properties)
          Constructs a new JBI Resource Adapter for the solicitor port.
 
Method Summary
 String getJndiName()
          Returns the JNDI name used by this resource adapter.
 Properties getProperties()
          Returns the properties object used by this resource adapter.
 void solicit(Message<?> message, guarana.util.remote.RemoteObjectReference replyTo)
          Sends a solicit message to the remote object via its stub and return immediately returns a future object as the result.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbiAsyncSolicitorAdapter

public JbiAsyncSolicitorAdapter(String jndiName,
                                Properties properties)
Constructs a new JBI Resource Adapter for the solicitor port.

Parameters:
jndiName - The name of the JBI Adapter to lookup at the JBI container.
properties - The properties object with lookup attributes and values to stablish the lookup connection.
Method Detail

solicit

public void solicit(Message<?> message,
                    guarana.util.remote.RemoteObjectReference replyTo)
             throws AdapterException
Sends a solicit message to the remote object via its stub and return immediately returns a future object as the result. Please, note that this future does not contains the response message yet. The response message will be set to the future latter by the JBI Adapter when it gets the response from the resource.

Specified by:
solicit in interface IAsyncSolicitorAdapter
Parameters:
message - The solicit message.
Throws:
AdapterException - to report any problems during this method execution.
See Also:
AsyncHandler

getJndiName

public String getJndiName()
Returns the JNDI name used by this resource adapter.

Returns:
the JNDI name.

getProperties

public Properties getProperties()
Returns the properties object used by this resource adapter.

Returns:
the properties.


Guaranį DSL Home