The term JMS destination, covers both Point-to-Point queues as well as Publish-and- Subscribe topics. The Enterprise Messaging Grid offers two options for obtaining a JMS destination:
To use JNDI to obtain the Queue or Topic object and then to use that in your application. To use this option, one needs to add the destination name in the space configuration file (under the <administrated-destinations> tag). This in turn creates and stores the Queue or Topic object in JNDI. (This is the default option.)
To obtain a destination from the session with the createQueue and createTopic methods.
Option one is the easiest way to obtain a Queue or Topic object. However, option two, although in-keeping with JMS standards, creates a very basic API that only offers default parameters without provider-specific parameters.
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.
Add Comment