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 use of BytesMessage?



What is the use of BytesMessage?..

Answer / munnu

BytesMessage contains an array of primitive bytes in it's payload. Thus it can be used for transfer of data between two applications in their native format which may not be compatible with other Message types. It is also useful where JMS is used purely as a transport between two systems and the message payload is opaque to the JMS client. Whenever you store any primitive type, it is converted into it's byte representation and then stored in the payload. There is no boundary line between the different data types stored. Thus you can even read a long as short. This would result in erroneous data and hence it is advisable that the payload be read in the same order and using the same type in which it was created by the sender.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JMS Interview Questions

Is ibm mq jms compliant?

0 Answers  


How does spring jms listener work?

0 Answers  


Explain about message listeners?

0 Answers  


Give an example of using point to point model in JMS?

0 Answers  


Can a jms queue have multiple listeners?

0 Answers  


What are the main component in JMS?

1 Answers  


What are Native Clients ?

1 Answers  


Are foreign destinations handled within foreign jms messages?

0 Answers  


Why is my jms work not part of a user transaction (i.e., Called within a transaction but not rolled back appropriately)? How do I track down transaction problems?

0 Answers  


How many types of messaging model do JMS provide for and what are they?

0 Answers  


Give an example of using the point-to-point model

1 Answers  


What is jndi? How is it related to jms?

0 Answers  


Categories