Information Technology Reference
In-Depth Information
• The status of the request
• The MIME type of the response data
• The response data
HTTPS is the secure form of the HTTP in that the HTTP communications are
transmitted over the Secure Socket Layer (SSL).
6.2.4.3.2 Remote Method Invocation (RMI)
RMI enables communication between distributed objects transparent of their
remote locations on the network by communicating with a local proxy or a
stub that is generated automatically to communicate with the corresponding
remote objects. The code for the proxy is generated automatically and com-
municates using sockets with the remote object—there is helper code at the
remote end that reads from the socket, processes the bytes, and makes the
method call on the remote object.
Initially, RMI allowed communication only between Java objects.
Subsequently, RMI began to support communication with non-Java objects
using RMI-IIOP that is a CORBA transport protocol on top of TCP/IP.
RMI enables developers to effectively concentrate on developing the busi-
ness logic rather than worrying about the details of the distribution.
6.2.4.3.3 Java Message Service (JMS)
JMS enables asynchronous communication between producers and consum-
ers in that a producer sends a message to a queue or topic, and, rather than
waiting for a response, it moves on to undertake other tasks. As and when
they are ready, consumers read messages from queues and topics.
JMS employs two models of communication:
1. Point to point: This involves the uses of FIFO queues and supports
one-to-one and many-to-one interactions between producers and
consumers. Message objects are created by the producers and sent
to a named queue. Consumers who wish to read messages from the
head of the queue obtain a reference to the queue head and then
listen or wait for messages to be placed on the queue. As and when
a message is placed on the queue, it will be read and removed from
the queue by the listening consumer.
2. Publish and subscribe: This involves the use of topics and sup-
ports many-to-many communication between producers and
consumers. Topics are analogous to newsgroups, and consumers
subscribe to one or more topics. As and when producers publish
messages to topics, a separate copy of a message is sent to each
consumer.
Search WWH ::




Custom Search