org.objectweb.joram.client.jms
Interface ConnectionItf

All Known Implementing Classes:
LocalConnection, SoapConnection, TcpConnection

public interface ConnectionItf

The ConnectionItf interface defines the methods provided to Connection objects for actually exchanging requests and replies with the Joram platform.

This interface is implemented by classes dedicated to a given communication protocol (as TCP or SOAP).

See Also:
TcpConnection, SoapConnection

Method Summary
 void close()
          Closes the connection.
 Driver createDriver(Connection cnx)
          Creates a driver for providing the connection with server's replies.
 void send(AbstractJmsRequest request)
          Sends a JMS request to the server.
 

Method Detail

createDriver

public Driver createDriver(Connection cnx)
Creates a driver for providing the connection with server's replies.

Parameters:
cnx - The calling Connection instance.

send

public void send(AbstractJmsRequest request)
          throws javax.jms.IllegalStateException
Sends a JMS request to the server.

Throws:
javax.jms.IllegalStateException - If the connection failed to route the sending because it is broken or not established.

close

public void close()
Closes the connection.



Copyright ? 2004 Scalagent - All rights reserved