|
Joram 5.0.9 | ||||||||
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
org.objectweb.joram.client.jms.ConnectionFactory
public abstract class ConnectionFactory
Implements the javax.jms.ConnectionFactory
interface.
Field Summary |
---|
Fields inherited from class org.objectweb.joram.client.jms.admin.AbstractConnectionFactory |
---|
params, reliableClass |
Constructor Summary | |
---|---|
ConnectionFactory()
Constructs an empty ConnectionFactory . |
|
ConnectionFactory(java.lang.String url)
Constructs a ConnectionFactory dedicated to a given server. |
|
ConnectionFactory(java.lang.String host,
int port)
Constructs a ConnectionFactory dedicated to a given server. |
Method Summary | |
---|---|
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. |
java.lang.String |
toString()
Returns a string view of the connection factory. |
Methods inherited from class org.objectweb.joram.client.jms.admin.AbstractConnectionFactory |
---|
code, code, decode, decode, fromReference, fromReference, getDefaultLogin, getDefaultPassword, getDefaultRootLogin, getDefaultRootPassword, getParameters, setReliableClass, toReference, toReference |
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 |
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(java.lang.String url)
ConnectionFactory
dedicated to a given server.
url
- joram ha url.public ConnectionFactory()
ConnectionFactory
.
Needed by ObjectFactory.
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
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 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
|
Joram 5.0.9 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |