Help the world stop coronavirus! Stay home!

Prev Next

Spring / JMS

What is the difference between Byte Message and Stream Message?

Bytes Message stores data in bytes. Thus the message is one contiguous stream of bytes. While the Stream Message maintains a boundary between the different data types stored because it also stores the type information along with the value of the primitive being stored. Bytes Message allows data to be read using any type. Thus even if your payload contains a long value, you can invoke a method to read a short and it will return you something. It will not give you a semantically correct data but the call will succeed in reading the first two bytes of data. This is strictly prohibited in the Stream Message. It maintains the type information of the data being stored and enforces strict conversion rules on the data being read.

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

What is JMS (Java Messaging Service)? How JMS (Java messaging service) is different from RPC (Remote Procedure call)? What type of messaging is provided by JMS? Explain Synchronous messaging in JMS. Explain Asynchronous messaging in JMS. What are the advantages of JMS? Different types of Messaging models in JMS. Difference between Point to Point and Publish/Subscribe models in JMS. Difference between topic and queue in JMS. Name some of the other major JMS products available in the market. What are the components of JMS? Explain the role of the JMS provider. Give an example of the publish/subscribe model in JMS. What are the important components of a JMS application? What is JMS administered object? What is JMS session? Difference between durable and non-durable subscription in JMS. Different types of messages available in JMS API. Can JMS be used to send an email? What is Message object in JMS? What is the use of BytesMessage in JMS? Describe the use of StreamMessage in JMS. What is the use of TextMessage in JMS? What is the use of ObjectMessage in JMS? What is the use of MapMessage in JMS? Wat is JMS client? What is JMS producer and Consumer? What is JMS queue? What is JMS topic? Describe Messaging. Explain the difference between Java Mail and JMS Queue. How does a typical JMS client perform the communication using JMS. Define a JMS application. What is the difference between Byte Message and Stream Message? How does the Application server handle the JMS Connection? Explain how JMS works with the J2EE? Can I deliver a Java message to a non-java client? Lets say I had received the JMS message from Queue/Topic and application went down with some issue. So is it possible to retrieve JMS message and continue the execution? if Yes, how is that done. Explain the relationship between the Java Message Service, the Java Transaction API, and the Java Transaction Service. Explain Exclusive and non-exclusive queues. Different Message delivery modes in Solace. Explain Direct and Persistent delivery modes. Explain Message promotion in Solace Message delivery mode. What is Message demotion? What is message replay? Explain request-response message exchange pattern.
Show more question and Answers...

Java Transactions (JTA)

Comments & Discussions