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

java.lang.Object
  extended byorg.objectweb.joram.client.jms.admin.AdministeredObject
      extended byorg.objectweb.joram.client.jms.ConnectionFactory
          extended byorg.objectweb.joram.client.jms.TopicConnectionFactory
              extended byorg.objectweb.joram.client.jms.soap.TopicSoapConnectionFactory
All Implemented Interfaces:
javax.jms.ConnectionFactory, javax.naming.Referenceable, java.io.Serializable, SoapObjectItf, javax.jms.TopicConnectionFactory

public class TopicSoapConnectionFactory
extends TopicConnectionFactory

A TopicSoapConnectionFactory instance is a factory of SOAP connections for Pub/Sub communication.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.joram.client.jms.ConnectionFactory
params
 
Fields inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject
id, instancesTable
 
Constructor Summary
TopicSoapConnectionFactory()
          Constructs an empty TopicSoapConnectionFactory instance.
TopicSoapConnectionFactory(java.lang.String host, int port, int timeout)
          Constructs a TopicSoapConnectionFactory instance.
 
Method Summary
static javax.jms.TopicConnectionFactory create(int timeout)
          Admin method creating a javax.jms.TopicConnectionFactory instance for creating SOAP connections with the local server.
static javax.jms.TopicConnectionFactory create(java.lang.String host, int port, int timeout)
          Admin method creating a javax.jms.TopicConnectionFactory 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.TopicConnection createTopicConnection(java.lang.String name, java.lang.String password)
          Method inherited from the TopicConnectionFactory class.
 java.lang.Object decode(java.util.Hashtable h)
          Decodes a TopicSoapConnectionFactory which travelled through the SOAP protocol.
 javax.naming.Reference getReference()
          Method inherited from the SoapConnectionFactory class; overrides this ConnectionFactory method for constructing the appropriate reference.
 
Methods inherited from class org.objectweb.joram.client.jms.TopicConnectionFactory
createTopicConnection, toString
 
Methods inherited from class org.objectweb.joram.client.jms.ConnectionFactory
code, createConnection, getDefaultLogin, getDefaultPassword, getParameters
 
Methods inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject
getInstance
 
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

TopicSoapConnectionFactory

public TopicSoapConnectionFactory(java.lang.String host,
                                  int port,
                                  int timeout)
Constructs a TopicSoapConnectionFactory 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).

TopicSoapConnectionFactory

public TopicSoapConnectionFactory()
Constructs an empty TopicSoapConnectionFactory instance.

Method Detail

createTopicConnection

public javax.jms.TopicConnection createTopicConnection(java.lang.String name,
                                                       java.lang.String password)
                                                throws javax.jms.JMSException
Method inherited from the TopicConnectionFactory class.

Specified by:
createTopicConnection in interface javax.jms.TopicConnectionFactory
Specified by:
createTopicConnection in class TopicConnectionFactory
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

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
Method inherited from the SoapConnectionFactory class; overrides this ConnectionFactory method for constructing the appropriate reference.

Specified by:
getReference in interface javax.naming.Referenceable
Overrides:
getReference in class ConnectionFactory
Throws:
javax.naming.NamingException

decode

public java.lang.Object decode(java.util.Hashtable h)
Decodes a TopicSoapConnectionFactory which travelled through the SOAP protocol.

Specified by:
decode in interface SoapObjectItf
Overrides:
decode in class ConnectionFactory

create

public static javax.jms.TopicConnectionFactory create(java.lang.String host,
                                                      int port,
                                                      int timeout)
Admin method creating a javax.jms.TopicConnectionFactory 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.TopicConnectionFactory create(int timeout)
                                               throws java.net.ConnectException
Admin method creating a javax.jms.TopicConnectionFactory 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.


Copyright ? 2004 Scalagent - All rights reserved