2 Replies Latest reply on Jun 1, 2010 11:02 AM by 805009

    OpenMQ doubts of a new guy

      Dear Friends,

      I am new to OpenMQ. I have some doubts.

      1. Can we use OpenMQ to send messages to a specifica clients so that other clients cannot acces that message? If it is possible how can we?

      2. Is it possible to inform the clients that you have a message or push the message to clients other than clients receive the message?

      I am not sure about the above points are workable with openmq. Friends please answer me.

        • 1. Re: OpenMQ doubts of a new guy
          Please answer my doubts.
          • 2. Re: OpenMQ doubts of a new guy
            Hi Shihab,

            Open MQ conforms to the JMS (Java Message Service) specification, which defines the basic concepts of how it works. I recomment you take a look at the JMS tutorial

            In particular, take a look at the section on [Basic JMS API concepts|http://java.sun.com/products/jms/tutorial/1_3_1-fcs/doc/basics.html] .

            The key thing to understand is that the sender of a message doesn't send it directly to the receiver of the message. Instead the sender sends the message to an abstract concept called a "destination". The receiver receives it from that destination. This way, the sender and receiver don't need to know about each other directly. There are two types of "destination": queues and topics, depending on whether you want each message to go to just one receiver or multiple receiver.

            So the answer to question 1 is that a message sent to a particular destination will only be delivered to a receiver who subscribes to the destination. And if your question is about security rather than message delivery, then yes, open MQ can control access to destinations using user/password authentication,

            As for question 2 (first part) the basic answer is yes: the client registers a callback method with Open MQ. When a message is received, that method will be called.
            I didn't understand the second part of your question ("is it possible to ...push the message to clients other than clients receive the message?").