Novell exteNd Messaging Platform 5.2

com.sssw.jms.api
Class JMQXAQueueConnectionFactory

java.lang.Object
  extended byorg.omg.CORBA.portable.ObjectImpl
      extended bycom.sssw.jbroker.orb.ValueWrapper
          extended bycom.sssw.jms.api.JMQAdministeredObject
              extended bycom.sssw.jms.api.JMQConnectionFactory
                  extended bycom.sssw.jms.api.JMQXAQueueConnectionFactory
All Implemented Interfaces:
ConnectionFactory, Object, QueueConnectionFactory, Referenceable, Serializable, XAConnectionFactory, XAQueueConnectionFactory

public class JMQXAQueueConnectionFactory
extends JMQConnectionFactory
implements XAQueueConnectionFactory

A client uses a JMQXAQueueConnectionFactory to create JMQXAQueueConnection's.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sssw.jms.api.JMQConnectionFactory
IIOP_PROTOCOL, IIOP_SSL_PROTOCOL, QUEUE, TOPIC, XA_QUEUE, XA_TOPIC
 
Constructor Summary
JMQXAQueueConnectionFactory()
          Construct a JMQXAQueueConnectionFactory.
JMQXAQueueConnectionFactory(String protocol)
          Construct a JMQXAQueueConnectionFactory with a given protocol.
JMQXAQueueConnectionFactory(String protocol, String clientId)
          Construct a JMQXAQueueConnectionFactory with a given protocol, and client Id.
JMQXAQueueConnectionFactory(String protocol, String hostName, String clientId)
          Construct a JMQXAQueueConnectionFactory with a given protocol, server hostname, and client id.
JMQXAQueueConnectionFactory(String protocol, String hostName, String clientId, int port)
          Construct a JMQXAQueueConnectionFactory with a given protocol, server hostname, server port, client id.
JMQXAQueueConnectionFactory(String protocol, String hostName, String clientId, int port, JMQServerInfo[] servers)
          Construct a JMQXAQueueConnectionFactory with a given protocol, cluster information, and client id.
JMQXAQueueConnectionFactory(String protocol, String hostName, String clientId, int port, String userName, String password)
          Construct a JMQXAQueueConnectionFactory with a given protocol, server hostname, server port, client id, username, and password.
JMQXAQueueConnectionFactory(String protocol, String hostName, String clientId, int port, String userName, String password, JMQServerInfo[] servers)
          Construct a JMQXAQueueConnectionFactory with a given protocol, cluster information, and client id.
 
Method Summary
 QueueConnection createQueueConnection()
          Create a QueueConnection using the factory's default configuration.
 QueueConnection createQueueConnection(String user, String password)
          Create a QueueConnection 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.
 XAQueueConnection createXAQueueConnection()
          Create a XAQueueConnection using the factory's default configuration.
 XAQueueConnection createXAQueueConnection(String user, String password)
          Create a XAQueueConnection 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, isSecureBroker, setCertificateChain, setCertificateChain, setCipherSuites, setClientId, setClientPull, setDefaultPassword, setDefaultUserName, setHost, setPort, setProtocol, setSecureBroker, 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

JMQXAQueueConnectionFactory

public JMQXAQueueConnectionFactory()
Construct a JMQXAQueueConnectionFactory. The protocol defaults to IIOP_PROTOCOL.

See Also:
JMQXAQueueConnectionFactory(String)

JMQXAQueueConnectionFactory

public JMQXAQueueConnectionFactory(String protocol)
Construct a JMQXAQueueConnectionFactory with a given protocol. The client Id defaults to null.

Parameters:
protocol - the protocol used to communicate with the JMS server
See Also:
JMQXAQueueConnectionFactory(String, String)

JMQXAQueueConnectionFactory

public JMQXAQueueConnectionFactory(String protocol,
                                   String clientId)
Construct a JMQXAQueueConnectionFactory with a given protocol, and client Id. The hostname defaults to "localhost".

Parameters:
protocol - the protocol used to communicate with the JMS server
clientId - the client identifier used by default by connections created using this factory
See Also:
JMQXAQueueConnectionFactory(String, String, String)

JMQXAQueueConnectionFactory

public JMQXAQueueConnectionFactory(String protocol,
                                   String hostName,
                                   String clientId)
Construct a JMQXAQueueConnectionFactory with a given protocol, server hostname, and client id. The default port 53506 is used.

Parameters:
protocol - the protocol used to communicate with the JMS server
hostName - the host name of JMS server
clientId - the client identifier used by default by connections created using this factory
See Also:
JMQXAQueueConnectionFactory(String, String, String, int)

JMQXAQueueConnectionFactory

public JMQXAQueueConnectionFactory(String protocol,
                                   String hostName,
                                   String clientId,
                                   int port)
Construct a JMQXAQueueConnectionFactory 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 JMS server
hostName - the host name of JMS server
clientId - the client identifier used by default by connections created using this factory
port - the port where JMS server is running
See Also:
JMQXAQueueConnectionFactory(String, String, String, int, String, String)

JMQXAQueueConnectionFactory

public JMQXAQueueConnectionFactory(String protocol,
                                   String hostName,
                                   String clientId,
                                   int port,
                                   JMQServerInfo[] servers)
Construct a JMQXAQueueConnectionFactory 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 JMS server
hostName - the host name of the primary JMS server
clientId - the client identifier used by default by connections created using this factory
port - the port where JMS server is running
servers - an array of host/port pairs for servers in cluster
See Also:
JMQXAQueueConnectionFactory(String, String, String, int, String, String, JMQServerInfo[])

JMQXAQueueConnectionFactory

public JMQXAQueueConnectionFactory(String protocol,
                                   String hostName,
                                   String clientId,
                                   int port,
                                   String userName,
                                   String password)
Construct a JMQXAQueueConnectionFactory with a given protocol, server hostname, server port, client id, username, and password.

Parameters:
protocol - the protocol used to communicate with the JMS server
hostName - the host name of JMS server
clientId - the client identifier used by default by connections created using this factory
port - the port where JMS server is running
userName - default user name when creating connections using this factory
password - default password when creating connections using this factory

JMQXAQueueConnectionFactory

public JMQXAQueueConnectionFactory(String protocol,
                                   String hostName,
                                   String clientId,
                                   int port,
                                   String userName,
                                   String password,
                                   JMQServerInfo[] servers)
Construct a JMQXAQueueConnectionFactory 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 JMS server
hostName - the host name of the primary JMS server
clientId - the client identifier used by default by connections created using this factory
port - the port where JMS 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.
Throws:
JMSException
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:
password - connection password
Returns:
a newly created XAConnection object.
Throws:
JMSException
Since:
jBroker MQ 2.1

createQueueConnection

public QueueConnection createQueueConnection()
                                      throws JMSException
Create a QueueConnection using the factory's default configuration.

Specified by:
createQueueConnection in interface QueueConnectionFactory
Returns:
a newly created QueueConnection object.
Throws:
JMSException - if the JMS provider fails to create the queue connection due to some internal error.

createQueueConnection

public QueueConnection createQueueConnection(String user,
                                             String password)
                                      throws JMSException
Create a QueueConnection using the factory's default configuration and specified user name and password.

Specified by:
createQueueConnection in interface QueueConnectionFactory
Parameters:
password - connection password
user - the caller's user name
Returns:
a newly created QueueConnection object.
Throws:
JMSException - if the JMS provider fails to create the queue connection due to some internal error.

createXAQueueConnection

public XAQueueConnection createXAQueueConnection()
                                          throws JMSException
Create a XAQueueConnection using the factory's default configuration.

Specified by:
createXAQueueConnection in interface XAQueueConnectionFactory
Returns:
a newly created XAQueueConnection object.
Throws:
JMSException - if the JMS provider fails to create an XA queue connection due to some internal error.

createXAQueueConnection

public XAQueueConnection createXAQueueConnection(String user,
                                                 String password)
                                          throws JMSException
Create a XAQueueConnection using the factory's default configuration and specified user name and password.

Specified by:
createXAQueueConnection in interface XAQueueConnectionFactory
Parameters:
password - connection password
user - the caller's user name
Returns:
a newly created XAQueueConnection object.
Throws:
JMSException - if the JMS provider fails to create an XA queue connection due to some internal error.

toString

public String toString()
Description copied from class: JMQConnectionFactory
Return a pretty printed string form of this connection factory

Overrides:
toString in class JMQConnectionFactory
Returns:
string form of object

Novell exteNd Messaging Platform 5.2

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2004 Novell, Inc. All Rights Reserved.