Toward the end of delivery, the message conceptually passes through the following stages: message with JMS provider and message in application processing.
Message with JMS provider In this stage, the message stays with the JMS provider just before the provider delivers it to the application. Consider a catastrophic situation where the JMS provider fails. What happens to the messages that the provider has not yet delivered to the client? Will the messages be lost?
The messages' fate depends not upon the transaction options outlined earlier, but rather upon the delivery mode. There are two delivery modes:nonpersistent and persistent. Messages with nonpersistent delivery modes are potentially lost if the JMS provider fails. Messages with persistent delivery modes are logged and stored to a stable storage. The JMS provider saves these messages to a stable storage, such as a database or a file system, and eventually delivers them to the application for processing.
producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
producer.setTimeToLive(60000);
Message in application processing In this stage, the application receives the message from the JMS provider and processes it. Consider a failure occurring during message processing. What happens to the message? Will the message be lost or redelivered for successful processing later? Theanswers to these questions depend upon the transaction options you choose.
Posted Date:- 2021-11-11 09:56:13
Whats is a subtle difference between a "durable" JMS message and a "persistent" JMS message ?
How to create Transacted session?
What is Client acknowledgement in JMS?
What are Message delivery stages in JMS?
What is the advantage of persistent message delivery compared to nonpersistent delivery?
What is the use of ObjectMessage?
What are the different types of messages available in the JMS API?
Are you aware of any major JMS products available in the market?
For sending messages through JMS, what encryption options are there?
How you can deliver a java message to a non-java client?
Explain the difference between topic and queue?
How does the Application server handle the JMS Connection?
What encryption options are there for sending messages through JMS?
Does Tomcat support JMS (Java Messaging Service)?
Give an example of using the point-to-point model.
How does a typical client perform the communication?
What is the Role of the JMS Provider?
What are the core JMS-related objects required for each JMS-enabled application?
How does the Application server handle the JMS Connection?
What is the role of JMS in enterprise solution development?
What are the core JMS-related objects required for each JMS-enabled application?
Where JMS is used in the e-commerce application?
How to send data in the file to JMS queue in tibco bw?
What is the use of JMS file store?
Explain request-response message exchange pattern.
Explain Message promotion in Solace Message delivery mode.
Can I deliver a Java message to a non-java client?
Explain how JMS works with the J2EE?
What is the difference between Byte Message and Stream Message?
Name some of the other major JMS products available in the market.
Difference between topic and queue in JMS.
Difference between Point to Point and Publish/Subscribe models in JMS.
What are the advantages of JMS?
Which JMS Provider have you worked with? Like IBM's WMQ, Apache Active MQ, Sonic MQ, etc
What is JMS Selector? How does it work? Any example of Using JMS Selector?
Does JMS Session object is thread-safe? Can we share JMS Session among multiple threads?
Explain Asynchronous messaging in JMS.
Explain Synchronous messaging in JMS.
How JMS (Java messaging service) is different from RPC (Remote Procedure call)?