org.objectweb.joram.client.jms.tcp
Class QueueTcpConnectionFactory
java.lang.Object
org.objectweb.joram.client.jms.admin.AdministeredObject
org.objectweb.joram.client.jms.ConnectionFactory
org.objectweb.joram.client.jms.QueueConnectionFactory
org.objectweb.joram.client.jms.tcp.QueueTcpConnectionFactory
- All Implemented Interfaces:
- javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, javax.naming.Referenceable, java.io.Serializable, SoapObjectItf
- public class QueueTcpConnectionFactory
- extends QueueConnectionFactory
A QueueTcpConnectionFactory
instance is a factory of
TCP connections for PTP communication.
- See Also:
- Serialized Form
Method Summary |
static javax.jms.QueueConnectionFactory |
create()
Admin method creating a javax.jms.QueueConnectionFactory
instance for creating TCP connections with the local server. |
static javax.jms.QueueConnectionFactory |
create(java.lang.String host,
int port)
Admin method creating a javax.jms.QueueConnectionFactory
instance for creating TCP connections with a given server. |
javax.jms.Connection |
createConnection(java.lang.String name,
java.lang.String password)
Method inherited from the ConnectionFactory class. |
javax.jms.QueueConnection |
createQueueConnection(java.lang.String name,
java.lang.String password)
Method inherited from the QueueConnectionFactory class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.jms.ConnectionFactory |
createConnection |
QueueTcpConnectionFactory
public QueueTcpConnectionFactory(java.lang.String host,
int port)
- Constructs a
QueueTcpConnectionFactory
instance.
- Parameters:
host
- Name or IP address of the server's host.port
- Server's listening port.
QueueTcpConnectionFactory
public QueueTcpConnectionFactory()
- Constructs an empty
QueueTcpConnectionFactory
instance.
createQueueConnection
public javax.jms.QueueConnection createQueueConnection(java.lang.String name,
java.lang.String password)
throws javax.jms.JMSException
- Method inherited from the
QueueConnectionFactory
class.
- Specified by:
createQueueConnection
in interface javax.jms.QueueConnectionFactory
- Specified by:
createQueueConnection
in class QueueConnectionFactory
- Throws:
JMSSecurityException
- If the user identification is incorrect.
java.lang.IllegalStateException
- If the server is not listening.
javax.jms.JMSException
createConnection
public javax.jms.Connection createConnection(java.lang.String name,
java.lang.String password)
throws javax.jms.JMSException
- Method inherited from the
ConnectionFactory
class.
- Specified by:
createConnection
in interface javax.jms.ConnectionFactory
- Specified by:
createConnection
in class ConnectionFactory
- Throws:
JMSSecurityException
- If the user identification is incorrect.
java.lang.IllegalStateException
- If the server is not listening.
javax.jms.JMSException
create
public static javax.jms.QueueConnectionFactory create(java.lang.String host,
int port)
- Admin method creating a
javax.jms.QueueConnectionFactory
instance for creating TCP connections with a given server.
- Parameters:
host
- Name or IP address of the server's host.port
- Server's listening port.
create
public static javax.jms.QueueConnectionFactory create()
throws java.net.ConnectException
- Admin method creating a
javax.jms.QueueConnectionFactory
instance for creating TCP connections with the local server.
- Throws:
ConnectException
- If the admin connection is closed or broken.
Copyright ? 2004 Scalagent - All rights reserved