The programmer side of OPENMAIA Java connection library is based on three objects:
org.maiaproject.connector.Connector org.maiaproject.connector.Message org.maiaproject.connector.MessageListener (I)
All of connector objects are part of
org.maiaproject.connector package, so it is usefull to import used classes into the Java code.
import org.maiaproject.connector.<class name>;
Connectorobject is the main object used for the connection with the OPENMAIA server. It is reposponsable for the connection and the sending and receiving of messages. The object is a singleton with some static functions, so once it is instantiated it is accessible by all of the objects running on the virtual machine.
Messageobject is a bean that stores informations about the message.
MessageLisateneris an interface for the handler object that receive incoming messages.