|
Joram ${version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.client.jms.admin.AdministeredObject
org.objectweb.joram.client.jms.ConnectionFactory
Implements the javax.jms.ConnectionFactory
interface.
Field Summary | |
protected FactoryParameters |
params
Object containing the factory's parameters. |
protected java.lang.String |
reliableClass
Reliable class name, for exemple use by ssl. |
Constructor Summary | |
ConnectionFactory()
Constructs an empty ConnectionFactory . |
|
ConnectionFactory(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 travelling
through the SOAP protocol. |
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. |
void |
decode(java.util.Hashtable h)
Implements the decode abstract method defined in the
fr.dyade.aaa.jndi2.soap.SoapObjectItf interface. |
static java.lang.String |
getDefaultLogin()
Returns default login name for connection. |
static java.lang.String |
getDefaultPassword()
Returns the default login password for connection. |
FactoryParameters |
getParameters()
Returns the factory's configuration parameters. |
javax.naming.Reference |
getReference()
Sets the naming reference of a connection factory. |
void |
setReliableClass(java.lang.String reliableClass)
|
java.lang.String |
toString()
Returns a string view of the connection factory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected FactoryParameters params
protected java.lang.String reliableClass
Constructor Detail |
public ConnectionFactory(java.lang.String host, int port)
ConnectionFactory
dedicated to a given server.
host
- Name or IP address of the server's host.port
- Server's listening port.public ConnectionFactory()
ConnectionFactory
.
Method Detail |
public java.lang.String toString()
public void setReliableClass(java.lang.String reliableClass)
public abstract javax.jms.Connection createConnection(java.lang.String name, java.lang.String password) throws javax.jms.JMSException
createConnection
in interface javax.jms.ConnectionFactory
JMSSecurityException
- If the user identification is incorrect.
java.lang.IllegalStateException
- If the server is not listening.
javax.jms.JMSException
public static java.lang.String getDefaultLogin()
public static java.lang.String getDefaultPassword()
public javax.jms.Connection createConnection() throws javax.jms.JMSException
createConnection
in interface javax.jms.ConnectionFactory
JMSSecurityException
- If the default identification is
incorrect.
java.lang.IllegalStateException
- If the server is not listening.
javax.jms.JMSException
public FactoryParameters getParameters()
public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
getReference
in class AdministeredObject
javax.naming.NamingException
public java.util.Hashtable code()
ConnectionFactory
as a Hashtable for travelling
through the SOAP protocol.
code
in interface fr.dyade.aaa.jndi2.soap.SoapObjectItf
public void decode(java.util.Hashtable h)
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.
decode
in interface fr.dyade.aaa.jndi2.soap.SoapObjectItf
|
Joram ${version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |