|
Joram 5.2.6 | ||||||||
| 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.admin.ClusterConnectionFactory
public class ClusterConnectionFactory
A base class for clustered connection factories.
| Field Summary | |
|---|---|
protected java.util.Hashtable |
cluster
|
| Constructor Summary | |
|---|---|
ClusterConnectionFactory()
Constructs an empty clustered connection factory. |
|
| Method Summary | |
|---|---|
void |
addConnectionFactory(ConnectionFactory cf)
Adds a connection factory to the cluster. |
void |
addConnectionFactory(java.lang.String location,
ConnectionFactory cf)
Adds a connection factory to the cluster with the specified location key. |
java.util.Hashtable |
code()
Codes a ConnectionFactory as a Hashtable for travelling
through the SOAP protocol. |
javax.jms.Connection |
createConnection()
Creates a connection with the default user identity. |
javax.jms.Connection |
createConnection(java.lang.String name,
java.lang.String password)
Creates a connection with the specified user identity. |
void |
decode(java.util.Hashtable h)
Implements the decode abstract method defined in the
fr.dyade.aaa.jndi2.soap.SoapObjectItf interface. |
void |
fromReference(javax.naming.Reference ref)
Restores the administered object from a naming reference. |
java.util.Hashtable |
getCluster()
|
protected ConnectionFactory |
getConnectionFactory()
Chooses a connection factory from the cluster definition. |
void |
toReference(javax.naming.Reference ref)
Sets the naming reference of an administered object. |
java.lang.String |
toString()
Returns a String image of the object. |
| 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 |
| Field Detail |
|---|
protected java.util.Hashtable cluster
| Constructor Detail |
|---|
public ClusterConnectionFactory()
| Method Detail |
|---|
public void addConnectionFactory(ConnectionFactory cf)
cf - the ConnectionFactory
public void addConnectionFactory(java.lang.String location,
ConnectionFactory cf)
location key.
Be careful, the object should be rebind after modification.
location - the location keycf - the ConnectionFactory
protected ConnectionFactory getConnectionFactory()
throws javax.jms.JMSException
javax.jms.JMSException
public final javax.jms.Connection createConnection()
throws javax.jms.JMSException
ConnectionFactory depending of the
location property, then creates the related Connection.
API method, see javax.jms.ConnectionFactory.
createConnection in interface javax.jms.ConnectionFactoryjavax.jms.JMSSecurityException - If the default identification is
incorrect.
java.lang.IllegalStateException - If the server is not listening.
javax.jms.JMSException
public final javax.jms.Connection createConnection(java.lang.String name,
java.lang.String password)
throws javax.jms.JMSException
ConnectionFactory depending of the
location property, then creates the related Connection.
API method, see javax.jms.ConnectionFactory.
createConnection in interface javax.jms.ConnectionFactoryname - the caller's user namepassword - the caller's password
javax.jms.JMSSecurityException - If the user identification is incorrect.
java.lang.IllegalStateException - If the server is not listening.
javax.jms.JMSExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Hashtable getCluster()
public void toReference(javax.naming.Reference ref)
throws javax.naming.NamingException
toReference in class AdministeredObjectjavax.naming.NamingException
public void fromReference(javax.naming.Reference ref)
throws javax.naming.NamingException
fromReference in class AdministeredObjectjavax.naming.NamingExceptionpublic java.util.Hashtable code()
ConnectionFactory as a Hashtable for travelling
through the SOAP protocol.
code in interface fr.dyade.aaa.jndi2.soap.SoapObjectItfpublic 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 5.2.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||