Joram ${version}

org.objectweb.joram.client.jms.soap
Class QueueSoapConnectionFactory

java.lang.Object
  extended byorg.objectweb.joram.client.jms.admin.AdministeredObject
      extended byorg.objectweb.joram.client.jms.ConnectionFactory
          extended byorg.objectweb.joram.client.jms.QueueConnectionFactory
              extended byorg.objectweb.joram.client.jms.soap.QueueSoapConnectionFactory
All Implemented Interfaces:
javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, javax.naming.Referenceable, java.io.Serializable, fr.dyade.aaa.jndi2.soap.SoapObjectItf

public class QueueSoapConnectionFactory
extends QueueConnectionFactory

A QueueSoapConnectionFactory instance is a factory of SOAP connections for PTP communication.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.joram.client.jms.ConnectionFactory
params, reliableClass
 
Constructor Summary
QueueSoapConnectionFactory()
          Constructs an empty QueueSoapConnectionFactory instance.
QueueSoapConnectionFactory(java.lang.String host, int port, int timeout)
          Constructs a QueueSoapConnectionFactory instance.
 
Method Summary
static javax.jms.QueueConnectionFactory create(int timeout)
          Admin method creating a javax.jms.QueueConnectionFactory instance for creating SOAP connections with the local server.
static javax.jms.QueueConnectionFactory create(java.lang.String host, int port, int timeout)
          Admin method creating a javax.jms.QueueConnectionFactory instance for creating SOAP 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 org.objectweb.joram.client.jms.QueueConnectionFactory
createQueueConnection, toString
 
Methods inherited from class org.objectweb.joram.client.jms.ConnectionFactory
code, createConnection, decode, getDefaultLogin, getDefaultPassword, getParameters, getReference, setReliableClass
 
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
 

Constructor Detail

QueueSoapConnectionFactory

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

Parameters:
host - Name or IP address of the server's host.
port - Server's listening port.
timeout - Duration in seconds during which a SOAP connection might be inactive before being considered as dead (0 for never).

QueueSoapConnectionFactory

public QueueSoapConnectionFactory()
Constructs an empty QueueSoapConnectionFactory instance.

Method Detail

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,
                                                      int timeout)
Admin method creating a javax.jms.QueueConnectionFactory instance for creating SOAP connections with a given server.

Parameters:
host - Name or IP address of the server's host.
port - Server's listening port.
timeout - Duration in seconds during which a SOAP connection might be inactive before being considered as dead (0 for never).

create

public static javax.jms.QueueConnectionFactory create(int timeout)
                                               throws java.net.ConnectException
Admin method creating a javax.jms.QueueConnectionFactory instance for creating SOAP connections with the local server.

Parameters:
timeout - Duration in seconds during which a SOAP connection might be inactive before being considered as dead (0 for never).
Throws:
ConnectException - If the admin connection is closed or broken.

Joram ${version}

Copyright ? 2005 Scalagent - All rights reserved