com.j_spaces.jms
Class GSQueueConnectionFactoryImpl

java.lang.Object
  extended by com.j_spaces.jms.GSConnectionFactoryImpl
      extended by com.j_spaces.jms.GSQueueConnectionFactoryImpl
All Implemented Interfaces:
Serializable, Remote, ConnectionFactory, QueueConnectionFactory, XAConnectionFactory

public class GSQueueConnectionFactoryImpl
extends GSConnectionFactoryImpl
implements QueueConnectionFactory, Serializable, Remote

GigaSpaces implementation of the javax.jms.QueueConnectionFactory interface. This class is responsible for finding a GigaSpace IJSpace using the SpaceFinder and a url. It also creates LocalTransactionManager and ParserManager instances.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.j_spaces.jms.GSConnectionFactoryImpl
QUEUE_CONNECTION_FAC, TOPIC_CONNECTION_FAC, XAQUEUE_CONNECTION_FAC, XATOPIC_CONNECTION_FAC
 
Constructor Summary
GSQueueConnectionFactoryImpl()
          Constructs a default GSQueueConnectionFactoryImpl.
GSQueueConnectionFactoryImpl(String spaceURL, IJSpace space)
          Constructs a GSQueueConnectionFactoryImpl.
GSQueueConnectionFactoryImpl(String spaceURL, int connFactoryType, IJSpace space)
          Constructs a GSQueueConnectionFactoryImpl.
 
Method Summary
 QueueConnection createQueueConnection()
          API method implementaion Creates Queue Connection: - Sets the client ID - Sets a unique connection key
 QueueConnection createQueueConnection(String userName, String password)
          API method implementaion which in addition to the createQueueConnection(), also check the username and password for authorization with the SecurityContext.
 
Methods inherited from class com.j_spaces.jms.GSConnectionFactoryImpl
createConnection, createConnection, createXAConnection, createXAConnection, getAdmin, getCnxCounter, getLocalTransactionManager, getSpaceURL, initializeConnFactoryServices, pingSpace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jms.ConnectionFactory
createConnection, createConnection
 

Constructor Detail

GSQueueConnectionFactoryImpl

public GSQueueConnectionFactoryImpl(String spaceURL,
                                    IJSpace space)
                             throws JMSException
Constructs a GSQueueConnectionFactoryImpl.

Parameters:
spaceURL -
logInstance -
Throws:
JMSException

GSQueueConnectionFactoryImpl

public GSQueueConnectionFactoryImpl(String spaceURL,
                                    int connFactoryType,
                                    IJSpace space)
                             throws JMSException
Constructs a GSQueueConnectionFactoryImpl.

Parameters:
spaceURL -
logInstance -
connFactoryType -
Throws:
JMSException

GSQueueConnectionFactoryImpl

public GSQueueConnectionFactoryImpl()
                             throws JMSException
Constructs a default GSQueueConnectionFactoryImpl.

Throws:
JMSException
Method Detail

createQueueConnection

public QueueConnection createQueueConnection()
                                      throws JMSException
API method implementaion Creates Queue Connection: - Sets the client ID - Sets a unique connection key

Specified by:
createQueueConnection in interface QueueConnectionFactory
Returns:
conn Queue connnection
Throws:
JMSException
See Also:
QueueConnectionFactory.createQueueConnection()

createQueueConnection

public QueueConnection createQueueConnection(String userName,
                                             String password)
                                      throws JMSException
API method implementaion which in addition to the createQueueConnection(), also check the username and password for authorization with the SecurityContext. Note that a Secured Space is a prerequisit for using an authonticated secured JMS connection.

Specified by:
createQueueConnection in interface QueueConnectionFactory
Parameters:
userName -
password -
Throws:
JMSException - (JMSSecurityException) if the secured space authontication failed, or the requested space is not secured, or the the user or password are not valid.
See Also:
QueueConnectionFactory.createQueueConnection(java.lang.String, java.lang.String)