Question: What is difference between RMI
and Java Messaging? And between email and Java messaging. Why do we need it?
Answer: "Messaging is a method of
communication between software components or applications. A messaging system is
a peer-to-peer facility: A messaging client can send messages to, and receive
messages from, any other client. Each client connects to a messaging agent that
provides facilities for creating, sending, receiving, and reading messages.
Messaging enables distributed communication that is loosely coupled. A
component sends a message to a destination, and the recipient can retrieve the
message from the destination. However, the sender and the receiver do not have
to be available at the same time in order to communicate. In fact, the sender
need to know anything about the receiver; nor does the receiver need to know
anything about the sender. The sender and the receiver need to know only what
message format and what destination to use. In this respect, messaging differs
from tightly coupled technologies, such as Remote Method Invocation (RMI), which
require an application to know a remote application's methods.
Messaging also differs from electronic mail (e-mail), which is a method of
communication between people or between software applications and people.
Messaging is used for communication between software applications or software
From SUN tutorial:
6 comments | | Score: 3.66