Wednesday, June 2, 2010

JMS Basics, Its Use And Architecture

BASICS
  1. JMS(Java Messaging Service) provides a common way for Java programs to send,create, receive and read an enterprise messaging system’s messages.
  2. It is different from RPC (Remote Procedure Call) because JMS is asynchronous in nature i.e. message sender just sends the message to the destination and continues it’s own processing. The sender does not wait for the receiver to respond but RPC is synchronous in nature i.e. the method invoker waits for the method to finish execution and return the control back to the invoker.
ITS USES
1. JMS in enterprise solution development
Enterprise Application Integration: Where a legacy application is integrated with a new application via messaging.
B2B or Business to Business: Businesses can interact with each other via messaging because JMS allows organizations to cooperate without tightly coupling their business systems.
Geographically dispersed units: JMS can ensure safe exchange of data amongst the geographically dispersed units of an organization.
2. One to many applications
The applications that need to push data in packet to huge number of clients in a one-to-many fashion are good candidates for the use JMS. Typical such applications are Auction Sites, Stock Quote Services etc.
ARCHITECTURE
1. JMS Application contain the following parts…..
JMS Clients: Java programs that send and receive messages.
Non-JMS Clients: Clients that use a message system’s native client API instead of JMS.
Messages: Set of messages that are used to communicate information between its clients.
JMS Provider: Messaging system that implements JMS in addition to the other administrative and control functionality
Administered Objects : Preconfigured JMS objects created by an administrator for the use of clients.
2. Two types of JMS administered objects:
ConnectionFactory: Object a client uses to create a connection with a provider.
Destination : Object a client uses to specify the destination of messages it is sending and the source of messages it receives.
3. JMS Administration
4.Two types of messaging paradigms JMS supports
Point-to-point (PTP),
Publish and Subscribe

0 comments:

Post a Comment

 

About

Site Info

Text

Grey Coderz Copyright © 2010 Site is Designed by Amreesh Tyagi