com.j_spaces.jms
Class GSTopicConnectionFactoryImpl

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

public class GSTopicConnectionFactoryImpl
extends GSConnectionFactoryImpl
implements TopicConnectionFactory, Serializable, Remote

GigaSpaces implementation of the javax.jms.TopicConnectionFactory 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
GSTopicConnectionFactoryImpl()
          Constructs a default GSTopicConnectionFactoryImpl.
GSTopicConnectionFactoryImpl(String spaceURL, IJSpace space)
          Constructs an GSTopicConnectionFactoryImpl.
GSTopicConnectionFactoryImpl(String spaceURL, int connFactoryType, IJSpace space)
          Constructs an GSTopicConnectionFactoryImpl.
 
Method Summary
 TopicConnection createTopicConnection()
          API method implementaion Creates Topic Connection: - Sets the client ID - Sets a unique connection key
 TopicConnection createTopicConnection(String userName, String password)
          API method implementaion which in addition to the createTopicConnection(), 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

GSTopicConnectionFactoryImpl

public GSTopicConnectionFactoryImpl(String spaceURL,
                                    IJSpace space)
                             throws JMSException
Constructs an GSTopicConnectionFactoryImpl.

Parameters:
spaceURL -
logInstance -
Throws:
JMSException

GSTopicConnectionFactoryImpl

public GSTopicConnectionFactoryImpl(String spaceURL,
                                    int connFactoryType,
                                    IJSpace space)
                             throws JMSException
Constructs an GSTopicConnectionFactoryImpl.

Parameters:
spaceURL -
logInstance -
connFactoryType -
Throws:
JMSException

GSTopicConnectionFactoryImpl

public GSTopicConnectionFactoryImpl()
                             throws JMSException
Constructs a default GSTopicConnectionFactoryImpl.

Throws:
JMSException
Method Detail

createTopicConnection

public TopicConnection createTopicConnection()
                                      throws JMSException
API method implementaion Creates Topic Connection: - Sets the client ID - Sets a unique connection key

Specified by:
createTopicConnection in interface TopicConnectionFactory
Returns:
GSTopicConnectionImpl conn
Throws:
JMSException
See Also:
TopicConnectionFactory.createTopicConnection()

createTopicConnection

public TopicConnection createTopicConnection(String userName,
                                             String password)
                                      throws JMSException
API method implementaion which in addition to the createTopicConnection(), 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:
createTopicConnection in interface TopicConnectionFactory
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:
TopicConnectionFactory.createTopicConnection(java.lang.String, java.lang.String)