Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML


 

Java Tutorials


 

 

Struts Tutorials

Struts Resources

Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Java Message Services

                         

In this section, you will read about the java messages Services (JMS). This tutorial provides an overview of the JMS and offers the basics for developing programs using it. The java message services API is a java Message oriented Middleware API for sending successfully the messages asynchronously to the servers.

JMS Element

The following some element of JMS:

  • JMS Provider: The JMS provider implements the JMS interface for a Message Oriented Middleware. 
  • JMS Client: An application or process that produces and receives messages.
  • JMS consumer: A JMS client that receives  messages.
  • JMS Message: An object that contains the data being transferred between JMS clients.

Models 

The JMS API supports two models:

  1. point to point or queuing model 
  2. publish and subscribe model

point to point or queuing model

The point-to-point or queuing model, a producer posts messages to a particular queue and a consumer reads message from the queue. The point-to-point model support the some following statements 

  • Only one consumer will get the message 
  • The producer does not have to be running at the time the consumer consumes the message, nor does the consumer need to be running at the time the message is sent.

Publish and subscribe model

The publish- subscribe model supports publishing messages to a particular message topic. In this model, neither the publisher nor the subscribe know about each other. The following are the characteristics of this model:

  • Multiple consumers can get the message.
  • There is a timing dependency between publishers and subscribers. The publisher has to create a subscription in order for clients to be able to subscribe. 

    JMS provides a way of separating the application from the transport layer of providing data. The same java class can be used to communicate with different JMS providers by using the JNDI information for the desired provider.

                         

Ask programming questions?

 

 

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

0 comments so far (post your own) View All Comments Latest 10 Comments:
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name

 

 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright 2007. All rights reserved.

[an error occurred while processing this directive]