org.exolab.jms.client
Class JmsTopicConnectionFactory

java.lang.Object
  |
  +--org.exolab.jms.client.JmsConnectionFactory
        |
        +--org.exolab.jms.client.JmsTopicConnectionFactory
All Implemented Interfaces:
javax.jms.ConnectionFactory, javax.jms.ExceptionListener, java.io.Externalizable, javax.naming.Referenceable, java.io.Serializable, javax.jms.TopicConnectionFactory
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

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

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

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

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


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