Joram 5.0.7

org.objectweb.joram.client.jms.admin
Class AbstractConnectionFactory

java.lang.Object
  extended by org.objectweb.joram.client.jms.admin.AdministeredObject
      extended by org.objectweb.joram.client.jms.admin.AbstractConnectionFactory
All Implemented Interfaces:
fr.dyade.aaa.jndi2.soap.SoapObjectItf, java.io.Serializable, javax.naming.Referenceable
Direct Known Subclasses:
ConnectionFactory, XAConnectionFactory

public abstract class AbstractConnectionFactory
extends AdministeredObject

Implements the javax.jms.ConnectionFactory interface.

See Also:
Serialized Form

Field Summary
protected  FactoryParameters params
          Object containing the factory's parameters.
protected  java.lang.String reliableClass
          Reliable class name, for example use by ssl.
 
Constructor Summary
AbstractConnectionFactory()
          Constructs an empty ConnectionFactory.
AbstractConnectionFactory(java.lang.String url)
          Constructs a ConnectionFactory dedicated to a given server.
AbstractConnectionFactory(java.lang.String host, int port)
          Constructs a ConnectionFactory dedicated to a given server.
 
Method Summary
 java.util.Hashtable code()
          Codes a ConnectionFactory as a Hashtable for traveling through the SOAP protocol.
 java.util.Hashtable code(java.util.Hashtable h, java.lang.String prefix)
           
 void decode(java.util.Hashtable h)
          Implements the decode abstract method defined in the fr.dyade.aaa.jndi2.soap.SoapObjectItf interface.
 void decode(java.util.Hashtable h, java.lang.String prefix)
           
 void fromReference(javax.naming.Reference ref)
          Restores the administered object from a naming reference.
 void fromReference(javax.naming.Reference ref, java.lang.String prefix)
          Restores the administered object from a clustered naming reference.
static java.lang.String getDefaultLogin()
          Returns default login name for connection.
static java.lang.String getDefaultPassword()
          Returns the default login password for connection.
static java.lang.String getDefaultRootLogin()
          Returns default administrator login name for connection.
static java.lang.String getDefaultRootPassword()
          Returns the default administrator login password for connection.
 FactoryParameters getParameters()
          Returns the factory's configuration parameters.
 void setReliableClass(java.lang.String reliableClass)
           
 void toReference(javax.naming.Reference ref)
          Sets the naming reference of an administered object.
 void toReference(javax.naming.Reference ref, java.lang.String prefix)
          Sets the clustered naming reference of a connection factory.
 
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, toString, wait, wait, wait
 

Field Detail

params

protected FactoryParameters params
Object containing the factory's parameters.


reliableClass

protected java.lang.String reliableClass
Reliable class name, for example use by ssl.

Constructor Detail

AbstractConnectionFactory

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

AbstractConnectionFactory

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

Parameters:
url - joram ha url.

AbstractConnectionFactory

public AbstractConnectionFactory()
Constructs an empty ConnectionFactory. Needed by ObjectFactory.

Method Detail

setReliableClass

public void setReliableClass(java.lang.String reliableClass)

getDefaultRootLogin

public static java.lang.String getDefaultRootLogin()
Returns default administrator login name for connection. Default value "root" can be adjusted by setting the JoramDfltRootLogin property.


getDefaultRootPassword

public static java.lang.String getDefaultRootPassword()
Returns the default administrator login password for connection. Default value "root" can be adjusted by setting the JoramDfltRootPassword property.


getDefaultLogin

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


getDefaultPassword

public static java.lang.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.


toReference

public final void toReference(javax.naming.Reference ref)
                       throws javax.naming.NamingException
Sets the naming reference of an administered object.

Specified by:
toReference in class AdministeredObject
Throws:
javax.naming.NamingException

toReference

public void toReference(javax.naming.Reference ref,
                        java.lang.String prefix)
Sets the clustered naming reference of a connection factory.


fromReference

public final void fromReference(javax.naming.Reference ref)
                         throws javax.naming.NamingException
Restores the administered object from a naming reference.

Specified by:
fromReference in class AdministeredObject
Throws:
javax.naming.NamingException

fromReference

public void fromReference(javax.naming.Reference ref,
                          java.lang.String prefix)
Restores the administered object from a clustered naming reference.


code

public java.util.Hashtable code()
Codes a ConnectionFactory as a Hashtable for traveling through the SOAP protocol.


code

public java.util.Hashtable code(java.util.Hashtable h,
                                java.lang.String prefix)

decode

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


decode

public void decode(java.util.Hashtable h,
                   java.lang.String prefix)

Joram 5.0.7

Copyright © 2005 Scalagent - All rights reserved