Chapter 16. The JXTA Message Specification
Messages are the basic unit of data exchange between peers. Pipes send and receive messages to and from services; any JXTA protocols implemented by a service will send and receive JXTA messages. JXTA uses a binary format message representation that guarantees the efficient transfer of binary and XML data. Each JXTA transport binding may use the representations deemed to be the most appropriate. For example, both the TCP/IP and HTTP transport binding implemented in the JXTA reference implementation use the binary message format.
Messages
A message is a set of named and typed content called elements. Thus, a message is essentially a set of name/value pairs. The content can be an arbitrary type. Many core services send XML advertisements as message element content. As a message passes down a protocol stack (applications, services, and transports), each level may add one or more named elements to the message. As a message passes back up the stack, the protocol will remove these elements. A message is an ordered sequence of message elements. The most recently added element appears at the end of the message.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access