|
Joram ${version} | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.joram.client.jms.tcp.TcpConnection
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,
java.lang.String name,
java.lang.String password)
Creates a TcpConnection instance. |
|
TcpConnection(FactoryParameters params,
java.lang.String name,
java.lang.String password,
java.lang.String reliableClass)
Creates a TcpConnection instance. |
|
| Method Summary | |
void |
close()
Closes the TCP connection. |
AbstractJmsReply |
receive()
|
void |
send(AbstractJmsRequest request)
Sending a JMS request through the TCP connection. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TcpConnection(FactoryParameters params,
java.lang.String name,
java.lang.String password)
throws javax.jms.JMSException
TcpConnection instance.
params - Factory parameters.name - Name of user.password - Password of user.
javax.jms.JMSSecurityException - If the user identification is incorrrect.
javax.jms.IllegalStateException - If the server is not reachable.
javax.jms.JMSException
public TcpConnection(FactoryParameters params,
java.lang.String name,
java.lang.String password,
java.lang.String reliableClass)
throws javax.jms.JMSException
TcpConnection instance.
params - Factory parameters.name - Name of user.password - Password of user.reliableClass - reliable class name.
javax.jms.JMSSecurityException - If the user identification is incorrrect.
javax.jms.IllegalStateException - If the server is not reachable.
javax.jms.JMSException| Method Detail |
public void send(AbstractJmsRequest request)
throws java.lang.Exception
send in interface RequestChanneljavax.jms.IllegalStateException - If the connection is broken.
java.lang.Exception
public AbstractJmsReply receive()
throws java.lang.Exception
receive in interface RequestChanneljava.lang.Exceptionpublic void close()
close in interface RequestChannelpublic java.lang.String toString()
|
Joram ${version} | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||