In: Computer Science
Using JMS as the discussion context, describe what is asynchronous messaging and how to respond to asynchronous messages
In Java Message Service Concept the JMS provider can directly send a message to the client without asking them. The client does not have to ask everytime the JMS provider to send the message to them. To ensure that a single message is sent only time throughout the process the JMS provider uses a JMS API so that a message is sent only once. This type of messaging is called asynchronous messaging.
In order to respond to an asynchronous messaging in JMS we use a listener. This listener is on a server and keep listening to incoming messages and then creates a queue. So that the messages can be sent in the same order it came with. The consumer.receive(100) used this listeners to know whether the incoming message is intended for this particular server or not. This message can be responded by the responder in the time which is suitable for him. There can be bots so that the messages can be responded and the sender does not have to wait for a long time. By this we can save more time and work on other things meanwhile.
If you liked the solution then give a thumbs up ? it will be really appreciated ?