Methods, systems, and computer program products that reduce buffer
requirements in a messaging system so that the messaging system can send
or receive relatively larger messages using a given buffer size. Message
handlers are provided, each identifying a corresponding processing
operation to perform on a message object having a streamed portion with a
stream oriented interface. Pipelines comprising ordered collections of
the message handlers are provided as well. The message object is
processed by the message handlers in the message pipelines, such that at
least one message handler encapsulates the streamed portion of the
message object with its corresponding processing operation. The
corresponding processing operation is to be performed at a future time,
and encapsulates the streamed portion of the message object without
materializing the stream portion in a buffer. The messaging system may be
an intermediary for routing a message object or an endpoint.