Joram 5.0.6

org.objectweb.joram.client.jms
Class ConnectionFactory

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
All Implemented Interfaces:
fr.dyade.aaa.jndi2.soap.SoapObjectItf, java.io.Serializable, javax.jms.ConnectionFactory, javax.naming.Referenceable
Direct Known Subclasses:
HALocalConnectionFactory, HATcpConnectionFactory, LocalConnectionFactory, QueueConnectionFactory, SoapConnectionFactory, TcpConnectionFactory, TopicConnectionFactory

public abstract class ConnectionFactory
extends AbstractConnectionFactory
implements javax.jms.ConnectionFactory

Implements the javax.jms.ConnectionFactory interface.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.joram.client.jms.admin.AbstractConnectionFactory
params, reliableClass
 
Constructor Summary
ConnectionFactory()
          Constructs an empty ConnectionFactory.
ConnectionFactory(java.lang.String url)
          Constructs a ConnectionFactory dedicated to a given server.
ConnectionFactory(java.lang.String host, int port)
          Constructs a ConnectionFactory dedicated to a given server.
 
Method Summary
 javax.jms.Connection createConnection()
          API method.
abstract  javax.jms.Connection createConnection(java.lang.String name, java.lang.String password)
          API method, implemented according to the communication protocol.
 java.lang.String toString()
          Returns a string view of the connection factory.
 
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

ConnectionFactory

public ConnectionFactory(java.lang.String host,
                         int port)
Constructs a ConnectionFactory dedicated to a given server.

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

ConnectionFactory

public ConnectionFactory(java.lang.String url)
Constructs a ConnectionFactory dedicated to a given server.

Parameters:
url - joram ha url.

ConnectionFactory

public ConnectionFactory()
Constructs an empty ConnectionFactory.

Method Detail

toString

public java.lang.String toString()
Returns a string view of the connection factory.

Overrides:
toString in class java.lang.Object

createConnection

public abstract javax.jms.Connection createConnection(java.lang.String name,
                                                      java.lang.String password)
                                               throws javax.jms.JMSException
API method, implemented according to the communication protocol.

Specified by:
createConnection in interface javax.jms.ConnectionFactory
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()
                                      throws javax.jms.JMSException
API method.

Specified by:
createConnection in interface javax.jms.ConnectionFactory
Throws:
JMSSecurityException - If the default identification is incorrect.
java.lang.IllegalStateException - If the server is not listening.
javax.jms.JMSException

Joram 5.0.6

Copyright © 2005 Scalagent - All rights reserved