1/26/2024 0 Comments Initialize queue java![]() JMS clients interact by sending and receiving messages using the JMS API. A durable subscription represents a consumer registered with the topic destination that can be inactive at the time the messages are sent to the topic.Ī JMS application consists of a set of application-defined messages and a set of clients that exchange them. If there are no consumers registered, the topic destination doesn't hold messages unless it has durable subscription for inactive consumers. In addition, any number of producers can send messages to a topic destination, and each message can be delivered to any number of subscribers. Messages are delivered to the topic destination, and then to all active consumers who have subscribed to the topic. Publish/Subscribe (Topic destination): In this model, a message is delivered from a producer to any number of consumers.If no consumers are registered to consume the messages, the queue holds them until a consumer registers to consume them. While any number of producers can send messages to the queue, each message is guaranteed to be delivered, and consumed by one consumer. ![]() The messages are delivered to the destination, which is a queue, and then delivered to one of the consumers registered for the queue.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |