GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  JMS
Go To First  |  Previous Question  |  Next Question 
 JMS  |  Question 10 of 17    Print  
what is the use of JMS?
In which situations we are using JMS?
Can we send message from one server to another server using JMS?

  
Total Answers and Comments: 1 Last Update: March 06, 2006     Asked by: Naveen Varanasi 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Supraja
 
You can use it in the context of mutithreading but it means JMS is not meant for Multithreading. Its basically meant for object communication.

It will be useful when you are writing some event based applications like Chat Server which needs a publish kind of event mechanism to send messages between the server to the clients who got connected with the server.

Moreover JMS gives Loosely-coupled kind of mechanism when compared with RMI which is tightly-coupled. In JMS there is no need for the destination object to be available online while sending a message from the client to the server. But in RMI it is necessary. So we can use JMS in place of RMI where we need to have loosely-coupled mechanism.


Above answer was rated as good by the following members:
geeky920
March 06, 2006 00:29:29   #1  
Supraja        

RE: what is the use of JMS?In which situations w...
You can use it in the context of mutithreading but it means JMS is not meant for Multithreading. Its basically meant for object communication.

It will be useful when you are writing some event based applications like Chat Server which needs a publish kind of event mechanism to send messages between the server to the clients who got connected with the server.

Moreover JMS gives Loosely-coupled kind of mechanism when compared with RMI which is tightly-coupled. In JMS there is no need for the destination object to be available online while sending a message from the client to the server. But in RMI it is necessary. So we can use JMS in place of RMI where we need to have loosely-coupled mechanism.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

The Java Message Service (JMS) defines the standard for reliable Enterprise Messaging. Enterprise messaging, often also referred to as Messaging Oriented Middleware (MOM), is universally recognized as 
Latest Answer : The Java Message Service is a Java API that allows applications to create, send, receive, and read messages. Designed by Sun and several partner companies, the JMS API defines a common set of interfaces and associated semantics that allow programs written ...

A connection is created between the client and the server from a connection factory. Connections can be shared by several threads. The user credentials are supplied at this level. It is probably common 
Latest Answer : Could any one of you give some sample code for JMS and MDB ...

Messaging systems provide a host of powerful advantages over other, more conventional distributed computing models. Primarily, they encourage "loose coupling" between message consumers and message 
Latest Answer : There are two types of messagings models. 1.Peer to Peer model (p to p) 2.Publisher to Subscriber(pub-sub)  peer to peer model is 1-1 model.  In this model one client can send message to the another client through the Destination.There ...

Latest Answer : Nothing will happen to durable subscriber,hence publisher can add n number of messages,the fact is as soon as message is deployed in application server,the registered subscriber only  able to listen the message,or else he will be continuing with ...
Read Answers (3) | Asked by : Prashant Sable

What is the use of JMS?In which situations we are using JMS?Can we send message from one server to another server using JMS?
Read Answers (1) | Asked by : Naveen Varanasi

Latest Answer : A message consists of two parts: 1. Data that is sent from one program to another 2. The message descriptor or message header The message descriptor identifies the message (message ID) and contains control information, also called ...

The header of a message contains message identification and routing information. This includes , but is not limited to :JMSDestinationJMSDeliveryModeJMSMessageIDJMSTimeStampJMSExpirationJMSReplyTOJMSCorrelationIDJMSTypeJMSRedeliveredRegardsSecretcoder 
View Question | Asked by : secretcoder

what is message object? when to use queue and topic? 
Latest Answer : When we have to use Queue and Topic?- If there are more than one listener server requesting for the same request in a runnable application, then we have to go for Topic - If there is only one listener vendor for the Object, then we need to choose Queue. ...
Read Answers (2) | Asked by : Abuthahir

Latest Answer : The Java object message before delivering to the non-java client has to be converted after receiving the message from Queue/Topic using the specification of non-java Client. ...
Read Answers (1) | Asked by : Ananth


 Sponsored Links

 
Related Articles

SQL Server 2005 Integration Services Review

SQL Server 2005 Integration Services using Visual Studio 2005 A Beginner s Guide SQL Server 2005 A offering of Microsoft Corporation for database management the SQL server 2005 is one of the powerful database management systems in the world Available for integration in almost any system that uses Mi
 

SQL Server Integration Services

SQL Server Integration Services Here is a sample chapter from Beginners Guide to SQL Server Integration Services Using Visual Studio 2005 by Jayaram Krishnaswamy Environment set up for Visual Studio 2005 with respect to SSIS and multiple tasking Connecting to Microsoft Access Text Files Excel S
 

Web Server

Web Server A web server can be a program or the computer itself which receives the requests from various other browsers and responds to those requests These requests are all requests that are being sent for some documents There are two kinds of web servers available The web server program and the
 

Client-Server Models and N-Tier Applications

Client Server Models and N Tier Applications One of principal objective of Client Server methods is to provide data to an end user However Client Server architectural methodologies are much more complex Client Server describes the process wherein a client program generates contact with a separate se
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

Web Services and Client Server Technology

Web Services and Client Server Technology Introduction to Distributed Computing The Internet and expanded network connectivity established client sever models as the preferred form of distributed computing When talking about Client Server models of networked communication using web services the broa
 

Object-Oriented Client-Server Internet

Object Oriented Client Server Internet OCSI Environments as IT Infrastructure Client Server Basics Object Oriented Client Server Internet OCSI environments provide the IT infrastructure for supporting OCSI applications For our purposes infrastructure refers to operating systems networks middleware
 

N-Tier Client-Server Architecture

N Tier Client Server Architecture Description of 1 Tier and 2 Tier Web Applications This article will discuss the various architectures of Client Server environments Perhaps the most influential Client Server environment is the Internet and its global users With the increasing use of web application
 

Language Enhancements in SQL Server 2005

The T-SQL has been enhanced to include error handling, recursive query and to support the new database engine capabilities. Two new relational operators have been introduced—PIVOT and UNPIVOT for use in the FORM clause query. They perform manipulation on an input table valued expression an
 

Security enhancements in SQL Server 2005

The trustworthy computing initiative has contributed greatly to help microsoft improve customer experience. A number of customer needs on security have been addressed. 1. Restricting user access to sql server 2. Disabling services and restricting service configuration 3. Reducing the surface are aof
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape