JMS

  GigaSpaces 5.X

Documentation Home
Quick Start Guide
Release Notes

Previous release

  Search Here
Searching GigaSpaces Platform 5.X Documentation

                                               

Section Summary: GigaSpaces allows applications to use the space as a messaging hub. Applications use JMS to create topics and queues as usual; these are transparently translated into space Entries.

This page is specific to:
GigaSpaces 5.x

If you're interested in another version, click it below:
GigaSpaces 6.0
[GigaSpaces 6.5]

Overview

GigaSpaces offers a virtual JMS implementation, built on top of the core JavaSpaces layer. The JMS implementation is basically a client-side view of specific objects in a space. This associative approach is a key factor in enabling the virtualization of a queue or a topic. In general, a queue or a topic is mapped to a set of objects of a specific class name – the queue/topic name ordered at the time they were written.

Basic JMS Workflow

Applications using GigaSpaces as the JMS provider should use the following basic process:

  1. Create a connection to the JMS client and obtain a Connection object. This step initiates a communications channel to the JMS client and approves it.
  2. Obtain a Session object for this connection. A Session is a factory that creates message producer and consumer objects, all operating within the same thread. In other words, if a client wants one thread to produce messages and other threads to consume them, the client must use a separate Session for each producing thread.
  3. Obtain a Queue or Topic object that parallels the particular message destination you desire.
    Remember that point-to-point messaging uses queues, while publish-and-subscribe messaging uses topics.

    The resulting message-producing application creates a message-producer object that corresponds to the session as well as to the particular queue or topic desired.

  4. When the application is finished, it should:
    • Close any message producer or message consumer objects.
    • Close the session.
    • Close the connection.

Optional Workflow Steps

The following actions can be performed during the basic interaction process described above:

  • To create a Message object with the necessary payload, use the message producer to send or publish that message. The message-consuming application creates a message consumer object that parallels the session as well as the particular queue or topic from which it wishes to consume the messages.
  • To start delivery of incoming messages, call start() on the Connection object.
  • To wait for messages to arrive synchronously, call receive() on the message consumer.
  • To wait for messages to arrive asynchronously, define a MessageListener object. The onMessage() method should be invoked when a message is received.

Section Contents


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)
  1. Aug 13

    Anonymous says:

    <a href=

    <a href= http://www.citc-hou.edu.vn/diendan/forum_posts.asp?TID=120&PN=1&TPN=1 >Buy Oxycontin without prescription</a>
    <a href= http://www.citc-hou.edu.vn/diendan/forum_posts.asp?TID=122&PN=1&TPN=1 >Buy Glipizide.Order Glipizide.</a>
    <a href= http://www.citc-hou.edu.vn/diendan/forum_posts.asp?TID=123&PN=1&TPN=1 >Purchase Flagyl.Buy Flagyl 500</a>
    <a href= http://www.citc-hou.edu.vn/diendan/forum_posts.asp?TID=124&PN=1&TPN=1 >Purchase avandia online.Avandia 4mg</a>
    <a href= http://www.citc-hou.edu.vn/diendan/forum_posts.asp?TID=125&PN=1&TPN=1 >Order Atenolol.Cheap Atenolol.Buy Atenolol</a>

  2. Aug 13

    Anonymous says:

    <a href=

    <a href= http://www.oahespeedway.com/forum/forum_posts.asp?TID=136 >Buy Oxycontin Online.Order Oxycontin</a>
    <a href= http://www.oahespeedway.com/forum/forum_posts.asp?TID=139 >Order Cipro online.Buying Cipro.Purchase Cipro</a>
    <a href= http://www.oahespeedway.com/forum/forum_posts.asp?TID=138 >Generic Claritin.Order Claritin.Buying Claritin</a>
    <a href= http://www.oahespeedway.com/forum/forum_posts.asp?TID=140 >Discount Diovan.Cheap Diovan.Order Diovan</a>
    <a href= http://www.oahespeedway.com/forum/forum_posts.asp?TID=141 >Cheap Elavil.Generic Elavil.Order Elavil</a>

Add Comment