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 are Building Blocks of a JMS application?

Answer Posted / neha

Connection :- It is a virtual connection with JMS provider.

Session :- It is a single threaded context for producing and consuming messages.

Message Producer :- It is created from a session and is using to send messages to destinations.

Message Consumers :- It is also created from a session and is using to receive messages from destination.

Message Selector :- To filter the messages received.

Message :-Message objects are sending in JMS. A JMS message has 3 parts

a)header :- It contains a number of predefined fields using for proper delivery and routing.

b)body :- As the name suggests it is the body of messages. JMS API allows five types of message bodies.

1.TextMessage :- Body contains String data

2.ByteMessage :- Body contains byte data

3. MapMessage :- Body contains data in key/value pair

4.StreamMessage :-Body contains a stream of primitive values

5.ObjectMessage : – Body contains an object

6.Message :- Nothing in body. Only header and properties.

c)properties :- Additional properties other than header.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about message selector?

827


Can a jms queue have multiple listeners?

841


Explain about map message?

794


What is message oriented middleware?

818


How does jms listener work?

815


What is the difference between the P2P (Peer to Peer) model and subscribe model?

856


What is the difference between JMS and RPC (Remote Procedure Call)?

775


What is jms message broker?

767


What is the best message queue?

809


What is the number of messaging models available on jms?

768


Is kafka a jms?

774


What is use of jms?

779


What is a topic in messaging?

840


Explain about Connection factory interface?

844


Which messaging is generally used in cases where a message is published by a producer and consumed by multiple subscribers?

740