org.exolab.jms.client
Class JmsTopicConnectionFactory

java.lang.Object
  extended by org.exolab.jms.client.JmsConnectionFactory
      extended by org.exolab.jms.client.JmsTopicConnectionFactory
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, javax.jms.ConnectionFactory, javax.jms.ExceptionListener, javax.jms.TopicConnectionFactory, javax.naming.Referenceable
Direct Known Subclasses:
JmsXATopicConnectionFactory

public class JmsTopicConnectionFactory
extends JmsConnectionFactory
implements javax.jms.TopicConnectionFactory, java.io.Externalizable, javax.naming.Referenceable

This class is responsible for managing all TopicConnection instances. It maintains no sta

Version:
$Revision: 1.15 $ $Date: 2003/08/07 13:32:51 $
Author:
Jim Alateras
See Also:
TopicConnection, Serialized Form

Field Summary
 
Fields inherited from class org.exolab.jms.client.JmsConnectionFactory
_className, _env
 
Constructor Summary
JmsTopicConnectionFactory()
          Need a default constructor so that it can be support externalization
JmsTopicConnectionFactory(java.lang.String name, java.util.Hashtable env)
          Instantiate an instance of the topic connection factory with the name of the class that will facilitate communication with the JmsServer
 
Method Summary
 javax.jms.TopicConnection createTopicConnection()
           
 javax.jms.TopicConnection createTopicConnection(java.lang.String userName, java.lang.String password)
           
 void readExternal(java.io.ObjectInput stream)
           
 void writeExternal(java.io.ObjectOutput stream)
           
 
Methods inherited from class org.exolab.jms.client.JmsConnectionFactory
addConnection, getConnections, getProxy, getReference, isManaged, onException, removeConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.naming.Referenceable
getReference
 

Constructor Detail

JmsTopicConnectionFactory

public JmsTopicConnectionFactory()
Need a default constructor so that it can be support externalization


JmsTopicConnectionFactory

public JmsTopicConnectionFactory(java.lang.String name,
                                 java.util.Hashtable env)
Instantiate an instance of the topic connection factory with the name of the class that will facilitate communication with the JmsServer

Parameters:
name - name of the class
env - environment variables
Method Detail

createTopicConnection

public javax.jms.TopicConnection createTopicConnection()
                                                throws javax.jms.JMSException
Specified by:
createTopicConnection in interface javax.jms.TopicConnectionFactory
Throws:
javax.jms.JMSException

createTopicConnection

public javax.jms.TopicConnection createTopicConnection(java.lang.String userName,
                                                       java.lang.String password)
                                                throws javax.jms.JMSException
Specified by:
createTopicConnection in interface javax.jms.TopicConnectionFactory
Throws:
javax.jms.JMSException

writeExternal

public void writeExternal(java.io.ObjectOutput stream)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class JmsConnectionFactory
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput stream)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class JmsConnectionFactory
Throws:
java.io.IOException
java.lang.ClassNotFoundException


Copyright © 1999-2005 The OpenJMS Group. All Rights Reserved.