Joram 4.3.27

org.objectweb.joram.client.jms.tcp
Class TcpConnectionFactory

java.lang.Object
  extended by org.objectweb.joram.client.jms.admin.AdministeredObject
      extended by org.objectweb.joram.client.jms.admin.AbstractConnectionFactory
          extended by org.objectweb.joram.client.jms.ConnectionFactory
              extended by org.objectweb.joram.client.jms.tcp.TcpConnectionFactory
All Implemented Interfaces:
fr.dyade.aaa.jndi2.soap.SoapObjectItf, javax.jms.ConnectionFactory, javax.naming.Referenceable

public class TcpConnectionFactory
extends ConnectionFactory

A TcpConnectionFactory instance is a factory of TCP connections.


Field Summary
 
Fields inherited from class org.objectweb.joram.client.jms.admin.AbstractConnectionFactory
params, reliableClass
 
Constructor Summary
TcpConnectionFactory()
          Constructs an empty TcpConnectionFactory instance.
TcpConnectionFactory(java.lang.String host, int port)
          Constructs a TcpConnectionFactory instance.
 
Method Summary
static javax.jms.ConnectionFactory create()
          Admin method creating a javax.jms.ConnectionFactory instance for creating TCP connections with the local server.
static javax.jms.ConnectionFactory create(java.lang.String host, int port)
          Admin method creating a javax.jms.ConnectionFactory instance for creating TCP connections with a given server.
static javax.jms.ConnectionFactory create(java.lang.String host, int port, java.lang.String reliableClass)
          Admin method creating a javax.jms.ConnectionFactory 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.
 
Methods inherited from class org.objectweb.joram.client.jms.ConnectionFactory
createConnection, toString
 
Methods inherited from class org.objectweb.joram.client.jms.admin.AbstractConnectionFactory
code, code, decode, decode, fromReference, fromReference, getDefaultLogin, getDefaultPassword, getDefaultRootLogin, getDefaultRootPassword, getParameters, setReliableClass, toReference, toReference
 
Methods inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject
getReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TcpConnectionFactory

public TcpConnectionFactory(java.lang.String host,
                            int port)
Constructs a TcpConnectionFactory instance.

Parameters:
host - Name or IP address of the server's host.
port - Server's listening port.

TcpConnectionFactory

public TcpConnectionFactory()
Constructs an empty TcpConnectionFactory instance.

Method Detail

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.ConnectionFactory create(java.lang.String host,
                                                 int port)
Admin method creating a javax.jms.ConnectionFactory 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.ConnectionFactory create(java.lang.String host,
                                                 int port,
                                                 java.lang.String reliableClass)
Admin method creating a javax.jms.ConnectionFactory 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.
reliableClass - Reliable class name.

create

public static javax.jms.ConnectionFactory create()
                                          throws java.net.ConnectException
Admin method creating a javax.jms.ConnectionFactory instance for creating TCP connections with the local server.

Throws:
ConnectException - If the admin connection is closed or broken.

Joram 4.3.27

Copyright © 2005 Scalagent - All rights reserved