|
Joram 5.2.4 | ||||||||
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.AbstractConnectionFactory
public abstract class AbstractConnectionFactory
Implements the javax.jms.ConnectionFactory
interface.
Field Summary | |
---|---|
protected Identity |
identity
Authentication identity. |
protected java.lang.String |
identityClassName
|
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)
|
javax.jms.Connection |
createConnection()
API method, creates a connection with the default user identity. |
javax.jms.Connection |
createConnection(java.lang.String name,
java.lang.String password)
API method, creates a connection with the specified user identity. |
javax.jms.QueueConnection |
createQueueConnection()
API method, creates a queue connection with the default user identity. |
javax.jms.QueueConnection |
createQueueConnection(java.lang.String name,
java.lang.String password)
API method, creates a queue connection with the specified user identity. |
protected abstract RequestChannel |
createRequestChannel(FactoryParameters params,
Identity identity,
java.lang.String reliableClass)
Creates the RequestChannel object specific to the protocol used. |
javax.jms.TopicConnection |
createTopicConnection()
API method, creates a topic connection with the default user identity. |
javax.jms.TopicConnection |
createTopicConnection(java.lang.String name,
java.lang.String password)
API method, creates a topic connection with the specified user identity. |
javax.jms.XAConnection |
createXAConnection()
API method, creates an XA connection with the default user identity. |
javax.jms.XAConnection |
createXAConnection(java.lang.String name,
java.lang.String password)
API method, creates an XA connection with the specified user identity. |
javax.jms.XAQueueConnection |
createXAQueueConnection()
API method, creates an XA queue connection with the default user identity. |
javax.jms.XAQueueConnection |
createXAQueueConnection(java.lang.String name,
java.lang.String password)
API method, creates an XA queue connection with the specified user identity. |
javax.jms.XATopicConnection |
createXATopicConnection()
API method, creates an XA topic connection with the default user identity. |
javax.jms.XATopicConnection |
createXATopicConnection(java.lang.String name,
java.lang.String password)
API method, creates an XA topic 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 |
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. |
static java.lang.String |
getDefaultServerHost()
Returns default server's hostname for connection. |
static int |
getDefaultServerPort()
Returns default server's port for connection. |
FactoryParameters |
getParameters()
Returns the factory's configuration parameters. |
protected void |
initIdentity(java.lang.String user,
java.lang.String passwd)
initialize the user identity. |
void |
setIdentityClassName(java.lang.String identityClassName)
set indentity class name |
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 |
---|
protected FactoryParameters params
protected java.lang.String reliableClass
protected Identity identity
protected java.lang.String identityClassName
Constructor Detail |
---|
public AbstractConnectionFactory(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 AbstractConnectionFactory(java.lang.String url)
ConnectionFactory
dedicated to a given server.
url
- joram ha url.public AbstractConnectionFactory()
ConnectionFactory
.
Needed by ObjectFactory.
Method Detail |
---|
public void setIdentityClassName(java.lang.String identityClassName)
identityClassName
- default Identity.SIMPLE_IDENTITY_CLASS (user/passwd).protected void initIdentity(java.lang.String user, java.lang.String passwd) throws javax.jms.JMSException
user
- user namepasswd
- user password
javax.jms.JMSException
public void setReliableClass(java.lang.String reliableClass)
public static java.lang.String getDefaultServerHost()
public static int getDefaultServerPort()
public static java.lang.String getDefaultRootLogin()
public static java.lang.String getDefaultRootPassword()
public static java.lang.String getDefaultLogin()
public static java.lang.String getDefaultPassword()
public FactoryParameters getParameters()
protected abstract RequestChannel createRequestChannel(FactoryParameters params, Identity identity, java.lang.String reliableClass) throws javax.jms.JMSException
RequestChannel
object specific to the protocol used.
params
- Connection configuration parameters.identity
- Client's identity.reliableClass
- The protocol specific class.
RequestChannel
object specific to the protocol used.
javax.jms.JMSException
- A problem occurs during the connection.public javax.jms.Connection createConnection() throws javax.jms.JMSException
javax.jms.JMSSecurityException
- If the default identification is incorrect.
java.lang.IllegalStateException
- If the server is not listening.
javax.jms.JMSException
javax.jms.ConnectionFactory.createConnection()
public javax.jms.Connection createConnection(java.lang.String name, java.lang.String password) throws javax.jms.JMSException
name
- the caller's user name.password
- the caller's password.
javax.jms.JMSSecurityException
- If the user identification is incorrect.
java.lang.IllegalStateException
- If the server is not listening.
javax.jms.JMSException
javax.jms.ConnectionFactory.createConnection(String, String)
public javax.jms.QueueConnection createQueueConnection() throws javax.jms.JMSException
javax.jms.JMSSecurityException
- If the default identification is incorrect.
java.lang.IllegalStateException
- If the server is not listening.
javax.jms.JMSException
javax.jms.ConnectionFactory.createQueueConnection()
public javax.jms.QueueConnection createQueueConnection(java.lang.String name, java.lang.String password) throws javax.jms.JMSException
name
- the caller's user name.password
- the caller's password.
javax.jms.JMSSecurityException
- If the user identification is incorrect.
java.lang.IllegalStateException
- If the server is not listening.
javax.jms.JMSException
javax.jms.ConnectionFactory.createQueueConnection(String, String)
public javax.jms.TopicConnection createTopicConnection() throws javax.jms.JMSException
javax.jms.JMSSecurityException
- If the default identification is incorrect.
java.lang.IllegalStateException
- If the server is not listening.
javax.jms.JMSException
javax.jms.ConnectionFactory.createTopicConnection()
public javax.jms.TopicConnection createTopicConnection(java.lang.String name, java.lang.String password) throws javax.jms.JMSException
name
- the caller's user name.password
- the caller's password.
javax.jms.JMSSecurityException
- If the user identification is incorrect.
java.lang.IllegalStateException
- If the server is not listening.
javax.jms.JMSException
javax.jms.ConnectionFactory.createTopicConnection(String, String)
public javax.jms.XAConnection createXAConnection() throws javax.jms.JMSException
javax.jms.JMSSecurityException
- If the default identification is incorrect.
java.lang.IllegalStateException
- If the server is not listening.
javax.jms.JMSException
javax.jms.ConnectionFactory.createXAConnection()
public javax.jms.XAConnection createXAConnection(java.lang.String name, java.lang.String password) throws javax.jms.JMSException
name
- the caller's user name.password
- the caller's password.
javax.jms.JMSSecurityException
- If the user identification is incorrect.
java.lang.IllegalStateException
- If the server is not listening.
javax.jms.JMSException
javax.jms.ConnectionFactory.createXAConnection(String, String)
public javax.jms.XAQueueConnection createXAQueueConnection() throws javax.jms.JMSException
javax.jms.JMSSecurityException
- If the default identification is incorrect.
java.lang.IllegalStateException
- If the server is not listening.
javax.jms.JMSException
javax.jms.ConnectionFactory.createXAQueueConnection()
public javax.jms.XAQueueConnection createXAQueueConnection(java.lang.String name, java.lang.String password) throws javax.jms.JMSException
name
- the caller's user name.password
- the caller's password.
javax.jms.JMSSecurityException
- If the user identification is incorrect.
java.lang.IllegalStateException
- If the server is not listening.
javax.jms.JMSException
javax.jms.ConnectionFactory.createXAQueueConnection(String, String)
public javax.jms.XATopicConnection createXATopicConnection() throws javax.jms.JMSException
javax.jms.JMSSecurityException
- If the default identification is incorrect.
java.lang.IllegalStateException
- If the server is not listening.
javax.jms.JMSException
public javax.jms.XATopicConnection createXATopicConnection(java.lang.String name, java.lang.String password) throws javax.jms.JMSException
name
- the caller's user name.password
- the caller's password.
javax.jms.JMSSecurityException
- If the user identification is incorrect.
java.lang.IllegalStateException
- If the server is not listening.
javax.jms.JMSException
public final void toReference(javax.naming.Reference ref) throws javax.naming.NamingException
toReference
in class AdministeredObject
javax.naming.NamingException
public void toReference(javax.naming.Reference ref, java.lang.String prefix)
public final void fromReference(javax.naming.Reference ref) throws javax.naming.NamingException
fromReference
in class AdministeredObject
javax.naming.NamingException
public void fromReference(javax.naming.Reference ref, java.lang.String prefix)
public java.util.Hashtable code()
ConnectionFactory
as a Hashtable for traveling
through the SOAP protocol.
public java.util.Hashtable code(java.util.Hashtable h, java.lang.String prefix)
public void decode(java.util.Hashtable h)
decode
abstract method defined in the
fr.dyade.aaa.jndi2.soap.SoapObjectItf
interface.
public void decode(java.util.Hashtable h, java.lang.String prefix)
|
Joram 5.2.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |