Obtaining JMS Destination Using JNDI

  GigaSpaces 5.X

Documentation Home
Quick Start Guide
Release Notes

Previous release

  Search Here
Searching GigaSpaces Platform 5.X Documentation

                                               

Summary: When a queue or topic exists and is stored in a JNDI namespace, the client can look it up by its JNDI name.

Overview

When the Queue or Topic has previously been created and stored in a JNDI namespace, the client can lookup the Queue or Topic by its JNDI name, as shown below:

Queue queue = (Queue)GSJMSAdmin.getQueue(destJNDIName);

or:

Topic topic = (Topic)GSJMSAdmin.getTopic(destJNDIName);

In this example, GSJMSAdmin is a JNDI Context.
destJNDIName is the JNDI name through which the Queue or Topic is bound to the JNDI namespace. The name of the queue or topic can be configured via the destination name in the space configuration file (under the <administrated-destinations> tag).


Wiki Content Tree


Your Feedback Needed!

We need your help to improve this wiki site. If you have any suggestions or corrections, write to us at techw@gigaspaces.com. Please provide a link to the wiki page you are referring to.

Labels

 
(None)