org.objectweb.joram.client.jms.tcp

Class TcpConnection

Implemented Interfaces:
ConnectionItf

public class TcpConnection
extends java.lang.Object
implements ConnectionItf

A TcpConnection links a Joram client and a Joram platform with a TCP socket.

Requests and replies travel through the socket after serialization.

Constructor Summary

TcpConnection(FactoryParameters params, String name, String password)
Creates a TcpConnection instance.

Method Summary

void
close()
Closes the TCP connection.
Driver
createDriver(Connection cnx)
Creates a driver for the connection.
void
send(AbstractJmsRequest request)
Sending a JMS request through the TCP connection.

Constructor Details

TcpConnection

public TcpConnection(FactoryParameters params,
                     String name,
                     String password)
            throws JMSException
Creates a TcpConnection instance.

Parameters:
params - Factory parameters.
name - Name of user.
password - Password of user.

Method Details

close

public void close()
Closes the TCP connection.
Specified by:
close in interface ConnectionItf


createDriver

public Driver createDriver(Connection cnx)
Creates a driver for the connection.
Specified by:
createDriver in interface ConnectionItf

Parameters:
cnx - The calling Connection instance.


send

public void send(AbstractJmsRequest request)
            throws IllegalStateException
Sending a JMS request through the TCP connection.
Specified by:
send in interface ConnectionItf


Copyright B) 2004 Scalagent - All rights reserved