guarana.toolkit.adapter.jbi
Class JbiExitResourceAdapter

java.lang.Object
  extended by guarana.toolkit.adapter.jbi.JbiExitResourceAdapter
All Implemented Interfaces:
IExitAdapter

public class JbiExitResourceAdapter
extends Object
implements IExitAdapter

A JBI Adapter to be used in ExitPorts.

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

Constructor Summary
JbiExitResourceAdapter(String jndiName, Properties properties)
          Constructs a new JBI Resource Adapter for an active ExitPort.
 
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 write(Message<?> message)
          Writes a message to the remote object via its stub.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbiExitResourceAdapter

public JbiExitResourceAdapter(String jndiName,
                              Properties properties)
Constructs a new JBI Resource Adapter for an active ExitPort.

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

write

public void write(Message<?> message)
           throws AdapterException
Writes a message to the remote object via its stub.

Specified by:
write in interface IExitAdapter
Parameters:
message - The outbound message.
Throws:
AdapterException - to report any problems during this method execution.

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