org.objectweb.joram.client.jms

Class ConnectionFactory

Implemented Interfaces:
javax.jms.ConnectionFactory, javax.naming.Referenceable, java.io.Serializable, SoapObjectItf
Known Direct Subclasses:
LocalConnectionFactory, QueueConnectionFactory, TcpConnectionFactory, TopicConnectionFactory

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

Implements the javax.jms.ConnectionFactory interface.

See Also:
Serialized Form

Field Summary

protected FactoryParameters
params
Object containing the factory's parameters.

Fields inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject

id, instancesTable

Constructor Summary

ConnectionFactory()
Constructs an empty ConnectionFactory.
ConnectionFactory(String host, int port)
Constructs a ConnectionFactory dedicated to a given server.

Method Summary

Hashtable
code()
Codes a ConnectionFactory as a Hashtable for travelling through the SOAP protocol.
javax.jms.Connection
createConnection()
API method.
javax.jms.Connection
createConnection(String name, String password)
API method, implemented according to the communication protocol.
Object
decode(Hashtable h)
Implements the decode abstract method defined in the fr.dyade.aaa.jndi2.soap.SoapObjectItf interface.
static String
getDefaultLogin()
Returns default login name for connection.
static String
getDefaultPassword()
Returns the default login password for connection.
FactoryParameters
getParameters()
Returns the factory's configuration parameters.
Reference
getReference()
Sets the naming reference of a connection factory.
String
toString()
Returns a string view of the connection factory.

Methods inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject

code, getInstance, getReference

Field Details

params

protected FactoryParameters params
Object containing the factory's parameters.

Constructor Details

ConnectionFactory

public ConnectionFactory()
Constructs an empty ConnectionFactory.


ConnectionFactory

public ConnectionFactory(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.

Method Details

code

public Hashtable code()
Codes a ConnectionFactory as a Hashtable for travelling through the SOAP protocol.
Specified by:
code in interface SoapObjectItf
Overrides:
code in interface AdministeredObject


createConnection

public javax.jms.Connection createConnection()
            throws JMSException
API method.


createConnection

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


decode

public Object decode(Hashtable h)
Implements the decode abstract method defined in the fr.dyade.aaa.jndi2.soap.SoapObjectItf interface.

Actual implementation of the method is located in the tcp and soap sub classes.

Specified by:
decode in interface SoapObjectItf


getDefaultLogin

public static String getDefaultLogin()
Returns default login name for connection. Default value "anonymous" can be adjusted by setting the JoramDfltLogin property.


getDefaultPassword

public static String getDefaultPassword()
Returns the default login password for connection. Default value "anonymous" can be adjusted by setting the JoramDfltPassword property.


getParameters

public FactoryParameters getParameters()
Returns the factory's configuration parameters.


getReference

public Reference getReference()
            throws NamingException
Sets the naming reference of a connection factory.
Overrides:
getReference in interface AdministeredObject


toString

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


Copyright B) 2004 Scalagent - All rights reserved