public class GSJMSAdmin extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
createAndBindDestination(boolean isQueue,
String destinationName)
Creates a Destination (GSTopicImpl or GSQueueImpl) and then binds it to the jndi registry.
|
void |
destroyAndUnBindDestination(String destinationName)
Destroys a Destination (GSTopicImpl or GSQueueImpl) and then unbinds from the jndi registry.
|
int |
getCompressionMinSize() |
javax.jms.ConnectionFactory |
getConnectionFactory(IJSpace space) |
javax.jms.ConnectionFactory |
getConnectionFactory(IJSpace space,
IMessageConverter messageConverter)
Returns a
ConnectionFactory that works with the specified space proxy. |
javax.jms.ConnectionFactory |
getConnectionFactory(String spaceURL) |
javax.jms.ConnectionFactory |
getConnectionFactory(String spaceURL,
IMessageConverter messageConverter)
Returns a
ConnectionFactory that works with the space in the specified spaceURL. |
static GSJMSAdmin |
getInstance()
Returns a GSJMSAdmin instance.
|
javax.jms.Queue |
getQueue(String name) |
javax.jms.QueueConnectionFactory |
getQueueConnectionFactory(IJSpace space) |
javax.jms.QueueConnectionFactory |
getQueueConnectionFactory(IJSpace space,
IMessageConverter messageConverter)
Returns a
QueueConnectionFactory that works with the specified space proxy. |
javax.jms.QueueConnectionFactory |
getQueueConnectionFactory(String spaceURL) |
javax.jms.QueueConnectionFactory |
getQueueConnectionFactory(String spaceURL,
IMessageConverter messageConverter)
Returns a
QueueConnectionFactory that works with the space in the specified
spaceURL. |
javax.jms.Topic |
getTopic(String name) |
javax.jms.TopicConnectionFactory |
getTopicConnectionFactory(IJSpace space) |
javax.jms.TopicConnectionFactory |
getTopicConnectionFactory(IJSpace space,
IMessageConverter messageConverter)
Returns a
TopicConnectionFactory that works with the specified space proxy. |
javax.jms.TopicConnectionFactory |
getTopicConnectionFactory(String spaceURL) |
javax.jms.TopicConnectionFactory |
getTopicConnectionFactory(String spaceURL,
IMessageConverter messageConverter)
Returns a
TopicConnectionFactory that works with the space in the specified
spaceURL. |
javax.jms.XAConnectionFactory |
getXAConnectionFactory(IJSpace space) |
javax.jms.XAConnectionFactory |
getXAConnectionFactory(IJSpace space,
IMessageConverter messageConverter)
Returns a
XAConnectionFactory that works with the specified space proxy. |
javax.jms.XAConnectionFactory |
getXAConnectionFactory(String spaceURL) |
javax.jms.XAConnectionFactory |
getXAConnectionFactory(String spaceURL,
IMessageConverter messageConverter)
Returns a
XAConnectionFactory that works with the space in the specified
spaceURL. |
javax.jms.XAQueueConnectionFactory |
getXAQueueConnectionFactory(IJSpace space) |
javax.jms.XAQueueConnectionFactory |
getXAQueueConnectionFactory(IJSpace space,
IMessageConverter messageConverter)
Returns a
XAQueueConnectionFactory that works with the specified space proxy. |
javax.jms.XAQueueConnectionFactory |
getXAQueueConnectionFactory(String spaceURL) |
javax.jms.XAQueueConnectionFactory |
getXAQueueConnectionFactory(String spaceURL,
IMessageConverter messageConverter)
Returns a
XAQueueConnectionFactory that works with the space in the specified
spaceURL. |
javax.jms.XATopicConnectionFactory |
getXATopicConnectionFactory(IJSpace space) |
javax.jms.XATopicConnectionFactory |
getXATopicConnectionFactory(IJSpace space,
IMessageConverter messageConverter)
Returns a
XATopicConnectionFactory that works with the specified space proxy. |
javax.jms.XATopicConnectionFactory |
getXATopicConnectionFactory(String spaceURL) |
javax.jms.XATopicConnectionFactory |
getXATopicConnectionFactory(String spaceURL,
IMessageConverter messageConverter)
Returns a
XATopicConnectionFactory that works with the space in the specified
spaceURL. |
Object |
jndiLookup(String name)
Creates a JNDI API InitialContext object if none exists yet.
|
public static GSJMSAdmin getInstance()
public javax.jms.ConnectionFactory getConnectionFactory(String spaceURL) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.ConnectionFactory getConnectionFactory(String spaceURL, IMessageConverter messageConverter) throws javax.jms.JMSException
ConnectionFactory that works with the space in the specified spaceURL.
First it tries to find a cached ConnectionFactory. If the required instance
doesn't exist in the cache, it finds the space and creates a new
ConnectionFactory to work with that space.spaceURL - space URLConnectionFactory instancejavax.jms.JMSException - if the was a problem to return the factorypublic javax.jms.ConnectionFactory getConnectionFactory(IJSpace space) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.ConnectionFactory getConnectionFactory(IJSpace space, IMessageConverter messageConverter) throws javax.jms.JMSException
ConnectionFactory that works with the specified space proxy. First it
tries to find a cached ConnectionFactory. If the required instance doesn't exist
in the cache, it creates a new ConnectionFactory to work with that space.space - the space proxyConnectionFactory instancejavax.jms.JMSException - if the was a problem to return the factorypublic javax.jms.QueueConnectionFactory getQueueConnectionFactory(String spaceURL) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.QueueConnectionFactory getQueueConnectionFactory(String spaceURL, IMessageConverter messageConverter) throws javax.jms.JMSException
QueueConnectionFactory that works with the space in the specified
spaceURL. First it tries to find a cached QueueConnectionFactory. If the
required instance doesn't exist in the cache, it finds the space and creates a new
QueueConnectionFactory to work with that space.spaceURL - space URLQueueConnectionFactory instancejavax.jms.JMSException - if the was a problem to return the factorypublic javax.jms.TopicConnectionFactory getTopicConnectionFactory(String spaceURL) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.TopicConnectionFactory getTopicConnectionFactory(String spaceURL, IMessageConverter messageConverter) throws javax.jms.JMSException
TopicConnectionFactory that works with the space in the specified
spaceURL. First it tries to find a cached TopicConnectionFactory. If the
required instance doesn't exist in the cache, it finds the space and creates a new
TopicConnectionFactory to work with that space.spaceURL - space URLTopicConnectionFactory instancejavax.jms.JMSException - if the was a problem to return the factorypublic javax.jms.QueueConnectionFactory getQueueConnectionFactory(IJSpace space) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.QueueConnectionFactory getQueueConnectionFactory(IJSpace space, IMessageConverter messageConverter) throws javax.jms.JMSException
QueueConnectionFactory that works with the specified space proxy.
First it tries to find a cached QueueConnectionFactory. If the required instance
doesn't exist in the cache, it creates a new QueueConnectionFactory to work with
that space.space - the space proxyQueueConnectionFactory instancejavax.jms.JMSException - if the was a problem to return the factorypublic javax.jms.TopicConnectionFactory getTopicConnectionFactory(IJSpace space) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.TopicConnectionFactory getTopicConnectionFactory(IJSpace space, IMessageConverter messageConverter) throws javax.jms.JMSException
TopicConnectionFactory that works with the specified space proxy.
First it tries to find a cached TopicConnectionFactory. If the required instance
doesn't exist in the cache, it creates a new TopicConnectionFactory to work with
that space.space - the space proxyTopicConnectionFactory instancejavax.jms.JMSException - if the was a problem to return the factorypublic javax.jms.XAConnectionFactory getXAConnectionFactory(String spaceURL) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.XAConnectionFactory getXAConnectionFactory(String spaceURL, IMessageConverter messageConverter) throws javax.jms.JMSException
XAConnectionFactory that works with the space in the specified
spaceURL. First it tries to find a cached XAConnectionFactory. If the required
instance doesn't exist in the cache, it finds the space and creates a new
XAConnectionFactory to work with that space.spaceURL - space URLXAConnectionFactory instancejavax.jms.JMSException - if the was a problem to return the factorypublic javax.jms.XAConnectionFactory getXAConnectionFactory(IJSpace space) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.XAConnectionFactory getXAConnectionFactory(IJSpace space, IMessageConverter messageConverter) throws javax.jms.JMSException
XAConnectionFactory that works with the specified space proxy. First
it tries to find a cached XAConnectionFactory. If the required instance doesn't
exist in the cache, it creates a new XAConnectionFactory to work with that
space.space - the space proxyXAConnectionFactory instancejavax.jms.JMSException - if the was a problem to return the factorypublic javax.jms.XAQueueConnectionFactory getXAQueueConnectionFactory(String spaceURL) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.XAQueueConnectionFactory getXAQueueConnectionFactory(String spaceURL, IMessageConverter messageConverter) throws javax.jms.JMSException
XAQueueConnectionFactory that works with the space in the specified
spaceURL. First it tries to find a cached XAQueueConnectionFactory. If the
required instance doesn't exist in the cache, it finds the space and creates a new
XAQueueConnectionFactory to work with that space.spaceURL - space URLXAQueueConnectionFactory instancejavax.jms.JMSException - if the was a problem to return the factorypublic javax.jms.XATopicConnectionFactory getXATopicConnectionFactory(String spaceURL) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.XATopicConnectionFactory getXATopicConnectionFactory(String spaceURL, IMessageConverter messageConverter) throws javax.jms.JMSException
XATopicConnectionFactory that works with the space in the specified
spaceURL. First it tries to find a cached XATopicConnectionFactory. If the
required instance doesn't exist in the cache, it finds the space and creates a new
XATopicConnectionFactory to work with that space.spaceURL - space URLXATopicConnectionFactory instancejavax.jms.JMSException - if the was a problem to return the factorypublic javax.jms.XAQueueConnectionFactory getXAQueueConnectionFactory(IJSpace space) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.XAQueueConnectionFactory getXAQueueConnectionFactory(IJSpace space, IMessageConverter messageConverter) throws javax.jms.JMSException
XAQueueConnectionFactory that works with the specified space proxy.
First it tries to find a cached XAQueueConnectionFactory. If the required
instance doesn't exist in the cache, it creates a new XAQueueConnectionFactory
to work with that space.space - the space proxyXAQueueConnectionFactory instancejavax.jms.JMSException - if the was a problem to return the factorypublic javax.jms.XATopicConnectionFactory getXATopicConnectionFactory(IJSpace space) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.XATopicConnectionFactory getXATopicConnectionFactory(IJSpace space, IMessageConverter messageConverter) throws javax.jms.JMSException
XATopicConnectionFactory that works with the specified space proxy.
First it tries to find a cached XATopicConnectionFactory. If the required
instance doesn't exist in the cache, it creates a new XATopicConnectionFactory
to work with that space.space - the space proxyXATopicConnectionFactory instancejavax.jms.JMSException - if the was a problem to return the factorypublic javax.jms.Queue getQueue(String name)
name - the name of the QueueQueue with the specified name.public javax.jms.Topic getTopic(String name)
name - the name of the TopicTopic with the specified name.public int getCompressionMinSize()
public Object jndiLookup(String name) throws NamingException
name - the name of the object to look forNamingException - if name cannot be foundpublic void createAndBindDestination(boolean isQueue,
String destinationName)
throws NamingException,
javax.jms.JMSException
NamingExceptionjavax.jms.JMSExceptionpublic void destroyAndUnBindDestination(String destinationName) throws javax.jms.JMSException
javax.jms.JMSExceptionCopyright © GigaSpaces.