|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.j_spaces.jms.GSConnectionFactoryImpl
public abstract class GSConnectionFactoryImpl
Implements the javax.jms.ConnectionFactory
interface.
It also in charge of the following:
- Finding a SpaceProxy according to te provided space url.
- Generating connection id's
- Managing the gigaspaces space url's used by the jms connections.
- Create LocalTransactionManager instance
- Creates the ParserManager for selector usage.
This implementation is using the GSJMSAdmin,
the GigaSpaces Utility class that is in charge of the following:
- Initiate on demand a first instance ofGSTopicConnectionFactoryImpl
, then return a static reference of it. - Initiate on demand a first instance ofGSQueueConnectionFactoryImpl
, then return a static reference of it. - Initiate on demand a first JNDI initial context and holds its static reference. - Lookup a Topic/Queue
Field Summary | |
---|---|
static int |
QUEUE_CONNECTION_FAC
|
static int |
TOPIC_CONNECTION_FAC
|
static int |
XAQUEUE_CONNECTION_FAC
|
static int |
XATOPIC_CONNECTION_FAC
|
Constructor Summary | |
---|---|
GSConnectionFactoryImpl(String spaceURL,
int connFacType,
IJSpace space)
Constructor Internal Constructor which is used by the LookupManager to bind initially the connection factory. |
Method Summary | |
---|---|
Connection |
createConnection()
JMS API method |
Connection |
createConnection(String userName,
String password)
JMS API method |
XAConnection |
createXAConnection()
|
XAConnection |
createXAConnection(String userName,
String password)
|
GSJMSAdmin |
getAdmin()
|
int |
getCnxCounter()
|
TransactionManager |
getLocalTransactionManager()
|
String |
getSpaceURL()
|
void |
initializeConnFactoryServices(String spaceURL,
GSJMSAdmin jmsAdminInstance)
Sets the GigaSpaces space url, jmsAdminInstance and finds the space proxy. |
boolean |
pingSpace()
Checks whether the space is alive and accessible. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int QUEUE_CONNECTION_FAC
public static final int TOPIC_CONNECTION_FAC
public static final int XAQUEUE_CONNECTION_FAC
public static final int XATOPIC_CONNECTION_FAC
Constructor Detail |
---|
public GSConnectionFactoryImpl(String spaceURL, int connFacType, IJSpace space) throws JMSException
spaceURL
- logger
- connFacType
- space
-
JMSException
Method Detail |
---|
public boolean pingSpace()
public void initializeConnFactoryServices(String spaceURL, GSJMSAdmin jmsAdminInstance) throws JMSException
spaceURL
- might be null, in that case the client did not overwrite
the default space url which was binded from the lookupanager
during space load.jmsAdminInstance
-
JMSException
public String getSpaceURL()
public Connection createConnection() throws JMSException
createConnection
in interface ConnectionFactory
JMSException
public Connection createConnection(String userName, String password) throws JMSException
createConnection
in interface ConnectionFactory
JMSException
public XAConnection createXAConnection() throws JMSException
createXAConnection
in interface XAConnectionFactory
JMSException
public XAConnection createXAConnection(String userName, String password) throws JMSException
createXAConnection
in interface XAConnectionFactory
JMSException
public int getCnxCounter()
public GSJMSAdmin getAdmin() throws JMSException
JMSException
public TransactionManager getLocalTransactionManager()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |