Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between Byte Message and Stream Message?



What is the difference between Byte Message and Stream Message?..

Answer / munnu

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.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JMS Interview Questions

What is the purpose of jms?

0 Answers  


What is an object message?

0 Answers  


Why doesn't AQ_ADMINISTRATOR_ROLE or AQ_USER_ROLE always work for AQ applications using Java/JMS API?

1 Answers  


What are all the features of JMS API in J2EE platform?

0 Answers  


How is message oriented middleware responsible for no time dependency between sender and receiver component with respect to point to point model on jms?

0 Answers  


What is Point-to-Point Approach?

0 Answers  


How may messaging models do JMS provide for and what are they?

0 Answers  


What is administered objects in jms?

0 Answers  


Is ibm mq jms compliant?

0 Answers  


How does a sender application transport/send a message through jms?

0 Answers  


What are the different types of messages available in the JMS API?

1 Answers  


What is the best message queue?

0 Answers  


Categories