jBroker® MQ 2.1

com.sssw.jms.api
Class JMQXATopicConnectionFactory

java.lang.Object
  |
  +--org.omg.CORBA.portable.ObjectImpl
        |
        +--com.sssw.jbroker.orb.ValueWrapper
              |
              +--com.sssw.jms.api.JMQAdministeredObject
                    |
                    +--com.sssw.jms.api.JMQConnectionFactory
                          |
                          +--com.sssw.jms.api.JMQXATopicConnectionFactory
All Implemented Interfaces:
ConnectionFactory, Object, Referenceable, Serializable, TopicConnectionFactory, XAConnectionFactory, XATopicConnectionFactory

public class JMQXATopicConnectionFactory
extends JMQConnectionFactory
implements XATopicConnectionFactory

A client uses a JMQXATopicConnectionFactory to create JMQXATopicConnection's.

See Also:
Serialized Form

Fields inherited from class com.sssw.jms.api.JMQConnectionFactory
IIOP_PROTOCOL, IIOP_SSL_PROTOCOL, QUEUE, TOPIC, XA_QUEUE, XA_TOPIC
 
Constructor Summary
JMQXATopicConnectionFactory()
          Construct a JMQXATopicConnectionFactory.
JMQXATopicConnectionFactory(String protocol)
          Construct a JMQXATopicConnectionFactory with a given protocol.
JMQXATopicConnectionFactory(String protocol, String clientId)
          Construct a JMQXATopicConnectionFactory with a given protocol, and client Id.
JMQXATopicConnectionFactory(String protocol, String hostName, String clientId)
          Construct a JMQXATopicConnectionFactory with a given protocol, server hostname, and client id.
JMQXATopicConnectionFactory(String protocol, String hostName, String clientId, int port)
          Construct a JMQXATopicConnectionFactory with a given protocol, server hostname, server port, client id.
JMQXATopicConnectionFactory(String protocol, String hostName, String clientId, int port, JMQServerInfo[] servers)
          Construct a JMQXATopicConnectionFactory with a given protocol, cluster information, and client id.
JMQXATopicConnectionFactory(String protocol, String hostName, String clientId, int port, String userName, String password)
          Construct a JMQXATopicConnectionFactory with a given protocol, server hostname, server port, client id, username, and password.
JMQXATopicConnectionFactory(String protocol, String hostName, String clientId, int port, String userName, String password, JMQServerInfo[] servers)
          Construct a JMQXATopicConnectionFactory with a given protocol, cluster information, and client id.
 
Method Summary
 TopicConnection createTopicConnection()
          Create a TopicConnection using the factory's default configuration.
 TopicConnection createTopicConnection(String user, String password)
          Create a TopicConnection using the factory's default configuration and specified user name and password.
 XAConnection createXAConnection()
          Create an XAConnection using the factory's default configuration.
 XAConnection createXAConnection(String user, String password)
          Create an XAConnection using the factory's default configuration and specified user name and password.
 XATopicConnection createXATopicConnection()
          Create a XATopicConnection using the factory's default configuration.
 XATopicConnection createXATopicConnection(String user, String password)
          Create a XATopicConnection using the factory's default configuration and specified user name and password.
 String toString()
          Return a pretty printed string form of this connection factory
 
Methods inherited from class com.sssw.jms.api.JMQConnectionFactory
addCACertificate, createConnection, createConnection, getCipherSuites, getClientId, getDefaultPassword, getDefaultUserName, getHost, getPort, getProtocol, getReference, getServers, getType, isClientPull, setCertificateChain, setCertificateChain, setCipherSuites, setClientId, setClientPull, setDefaultPassword, setDefaultUserName, setHost, setPort, setProtocol, setServers
 
Methods inherited from class com.sssw.jbroker.orb.ValueWrapper
_ids
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JMQXATopicConnectionFactory

public JMQXATopicConnectionFactory()
Construct a JMQXATopicConnectionFactory. The protocol defaults to IIOP_PROTOCOL.
See Also:
JMQXATopicConnectionFactory(String)

JMQXATopicConnectionFactory

public JMQXATopicConnectionFactory(String protocol)
Construct a JMQXATopicConnectionFactory with a given protocol. The client Id defaults to null.
Parameters:
protocol - the protocol used to communicate with the jBroker MQ server
See Also:
JMQXATopicConnectionFactory(String, String)

JMQXATopicConnectionFactory

public JMQXATopicConnectionFactory(String protocol,
                                   String clientId)
Construct a JMQXATopicConnectionFactory with a given protocol, and client Id. The hostname defaults to "localhost".
Parameters:
protocol - the protocol used to communicate with the jBroker MQ server
clientId - the client identifier used by default by connections created using this factory
See Also:
JMQXATopicConnectionFactory(String, String, String)

JMQXATopicConnectionFactory

public JMQXATopicConnectionFactory(String protocol,
                                   String hostName,
                                   String clientId)
Construct a JMQXATopicConnectionFactory with a given protocol, server hostname, and client id. The default port 3506 is used.
Parameters:
protocol - the protocol used to communicate with the jBroker MQ server
hostName - the host name of jBroker MQ server
clientId - the client identifier used by default by connections created using this factory
See Also:
JMQXATopicConnectionFactory(String, String, String, int)

JMQXATopicConnectionFactory

public JMQXATopicConnectionFactory(String protocol,
                                   String hostName,
                                   String clientId,
                                   int port)
Construct a JMQXATopicConnectionFactory with a given protocol, server hostname, server port, client id. The username and password are set to null.
Parameters:
protocol - the protocol used to communicate with the jBroker MQ server
hostName - the host name of jBroker MQ server
clientId - the client identifier used by default by connections created using this factory
port - the port where jBroker MQ server is running
See Also:
JMQXATopicConnectionFactory(String, String, String, int, String, String)

JMQXATopicConnectionFactory

public JMQXATopicConnectionFactory(String protocol,
                                   String hostName,
                                   String clientId,
                                   int port,
                                   JMQServerInfo[] servers)
Construct a JMQXATopicConnectionFactory with a given protocol, cluster information, and client id. The username and password are set to null.
Parameters:
protocol - the protocol used to communicate with the jBroker MQ server
hostName - the host name of the primary jBroker MQ server
clientId - the client identifier used by default by connections created using this factory
port - the port where jBroker MQ server is running
servers - an array of host/port pairs for servers in cluster
See Also:
JMQXATopicConnectionFactory(String, String, String, int, String, String, JMQServerInfo[])

JMQXATopicConnectionFactory

public JMQXATopicConnectionFactory(String protocol,
                                   String hostName,
                                   String clientId,
                                   int port,
                                   String userName,
                                   String password)
Construct a JMQXATopicConnectionFactory with a given protocol, server hostname, server port, client id, username, and password.
Parameters:
protocol - the protocol used to communicate with the jBroker MQ server
hostName - the host name of jBroker MQ server
clientId - the client identifier used by default by connections created using this factory
port - the port where jBroker MQ server is running
userName - default user name when creating connections using this factory
password - default password when creating connections using this factory

JMQXATopicConnectionFactory

public JMQXATopicConnectionFactory(String protocol,
                                   String hostName,
                                   String clientId,
                                   int port,
                                   String userName,
                                   String password,
                                   JMQServerInfo[] servers)
Construct a JMQXATopicConnectionFactory with a given protocol, cluster information, and client id. The username and password are set to null.
Parameters:
protocol - the protocol used to communicate with the jBroker MQ server
hostName - the host name of the primary jBroker MQ server
clientId - the client identifier used by default by connections created using this factory
port - the port where jBroker MQ server is running
userName - default user name when creating connections using this factory
password - default password when creating connections using this factory
servers - an array of host/port pairs for servers in cluster
Method Detail

createXAConnection

public XAConnection createXAConnection()
                                throws JMSException
Create an XAConnection using the factory's default configuration.
Returns:
a newly created XAConnection object.
Since:
jBroker MQ 2.1

createXAConnection

public XAConnection createXAConnection(String user,
                                       String password)
                                throws JMSException
Create an XAConnection using the factory's default configuration and specified user name and password.
Parameters:
userName - connection user name
password - connection password
Returns:
a newly created XAConnection object.
Since:
jBroker MQ 2.1

createTopicConnection

public TopicConnection createTopicConnection()
                                      throws JMSException
Create a TopicConnection using the factory's default configuration.
Specified by:
createTopicConnection in interface TopicConnectionFactory
Returns:
a newly created TopicConnection object.

createTopicConnection

public TopicConnection createTopicConnection(String user,
                                             String password)
                                      throws JMSException
Create a TopicConnection using the factory's default configuration and specified user name and password.
Specified by:
createTopicConnection in interface TopicConnectionFactory
Parameters:
userName - connection user name
password - connection password
Returns:
a newly created TopicConnection object.

createXATopicConnection

public XATopicConnection createXATopicConnection()
                                          throws JMSException
Create a XATopicConnection using the factory's default configuration.
Specified by:
createXATopicConnection in interface XATopicConnectionFactory
Returns:
a newly created XATopicConnection object.

createXATopicConnection

public XATopicConnection createXATopicConnection(String user,
                                                 String password)
                                          throws JMSException
Create a XATopicConnection using the factory's default configuration and specified user name and password.
Specified by:
createXATopicConnection in interface XATopicConnectionFactory
Parameters:
userName - connection user name
password - connection password
Returns:
a newly created XATopicConnection object.

toString

public String toString()
Description copied from class: JMQConnectionFactory
Return a pretty printed string form of this connection factory
Overrides:
toString in class JMQConnectionFactory
Following copied from class: com.sssw.jms.api.JMQConnectionFactory
Returns:
string form of object

jBroker® MQ 2.1

jBroker is a registered trademark of Novell, Inc.
Copyright 1998-2003 Novell, Inc. All Rights Reserved.