|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.client.JmsConnectionFactory
Client implementation of the javax.jms.ConnectionFactory
interface.
Constructor Summary | |
JmsConnectionFactory()
Default constructor required for serialization |
|
JmsConnectionFactory(java.lang.String className,
java.util.Map properties,
java.util.Map environment)
Construct a new JmsConnectionFactory |
Method Summary | |
protected void |
addConnection(org.exolab.jms.client.JmsConnection connection)
Add a connection. |
javax.jms.Connection |
createConnection()
Creates a connection with the default user identity. |
javax.jms.Connection |
createConnection(java.lang.String userName,
java.lang.String password)
Creates a connection with the specified user identity. |
javax.jms.QueueConnection |
createQueueConnection()
Create a queue connection with the default user identity. |
javax.jms.QueueConnection |
createQueueConnection(java.lang.String userName,
java.lang.String password)
Create a queue connection with the specified user identity. |
javax.jms.TopicConnection |
createTopicConnection()
Create a topic connection with the default user identity. |
javax.jms.TopicConnection |
createTopicConnection(java.lang.String userName,
java.lang.String password)
Create a topic connection with the specified user identity. |
protected org.exolab.jms.client.JmsConnection[] |
getConnections()
Returns the set of active connections. |
JmsServerStubIfc |
getProxy()
Returns the server proxy |
javax.naming.Reference |
getReference()
Retrieves the reference of this object. |
void |
onException(javax.jms.JMSException exception)
Notifies user of a JMS exception. |
void |
readExternal(java.io.ObjectInput stream)
Reads the object state from a stream. |
protected void |
removeConnection(org.exolab.jms.client.JmsConnection connection)
Remove a connection. |
void |
writeExternal(java.io.ObjectOutput stream)
Writes the object state to a stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JmsConnectionFactory()
public JmsConnectionFactory(java.lang.String className, java.util.Map properties, java.util.Map environment)
JmsConnectionFactory
className
- the class name of the server proxyproperties
- properties to initialise the server proxy withenvironment
- the environment to use when creating the server proxy.
May be null
Method Detail |
public JmsServerStubIfc getProxy() throws javax.jms.JMSException
javax.jms.JMSException
- if the proxy cannot be createdpublic void onException(javax.jms.JMSException exception)
onException
in interface javax.jms.ExceptionListener
exception
- the JMS exceptionpublic javax.naming.Reference getReference()
getReference
in interface javax.naming.Referenceable
public void writeExternal(java.io.ObjectOutput stream) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
stream
- the stream to write the state tojava.io.IOException
- for any I/O errorpublic void readExternal(java.io.ObjectInput stream) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
stream
- the stream to read the state fromjava.io.IOException
- for any I/O errorjava.lang.ClassNotFoundException
- if the class for an object being restored
cannot be foundpublic javax.jms.Connection createConnection() throws javax.jms.JMSException
Connection.start
method is explicitly called.createConnection
in interface javax.jms.ConnectionFactory
javax.jms.JMSException
- if the JMS provider fails to create the
connection due to some internal error.javax.jms.JMSSecurityException
- if client authentication fails due to an
invalid user name or password.public javax.jms.Connection createConnection(java.lang.String userName, java.lang.String password) throws javax.jms.JMSException
Connection.start
method is explicitly called.createConnection
in interface javax.jms.ConnectionFactory
userName
- the caller's user namepassword
- the caller's passwordjavax.jms.JMSException
- if the JMS provider fails to create the
connection due to some internal error.javax.jms.JMSSecurityException
- if client authentication fails due to an
invalid user name or password.public javax.jms.QueueConnection createQueueConnection() throws javax.jms.JMSException
createQueueConnection
in interface javax.jms.QueueConnectionFactory
javax.jms.JMSException
- if the connection can't be created due to
some internal errorjavax.jms.JMSSecurityException
- if client authentication fails due to
invalid user name or passwordpublic javax.jms.QueueConnection createQueueConnection(java.lang.String userName, java.lang.String password) throws javax.jms.JMSException
createQueueConnection
in interface javax.jms.QueueConnectionFactory
userName
- the caller's user namepassword
- tghe caller's passwordjavax.jms.JMSException
- if the connection can't be created due to
some internal errorjavax.jms.JMSSecurityException
- if client authentication fails due to
invalid user name or passwordpublic javax.jms.TopicConnection createTopicConnection() throws javax.jms.JMSException
createTopicConnection
in interface javax.jms.TopicConnectionFactory
javax.jms.JMSException
- if the connection can't be created due to some
internal errorjavax.jms.JMSSecurityException
- if client authentication fails due to
invalid user name or passwordpublic javax.jms.TopicConnection createTopicConnection(java.lang.String userName, java.lang.String password) throws javax.jms.JMSException
createTopicConnection
in interface javax.jms.TopicConnectionFactory
userName
- the caller's user namepassword
- tghe caller's passwordjavax.jms.JMSException
- if the connection can't be created due to some
internal errorjavax.jms.JMSSecurityException
- if client authentication fails due to
invalid user name or passwordprotected void addConnection(org.exolab.jms.client.JmsConnection connection)
connection
- the connection to addprotected void removeConnection(org.exolab.jms.client.JmsConnection connection)
connection
- the connection to removeprotected org.exolab.jms.client.JmsConnection[] getConnections()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |