Patent ID: 7185060

Claim:
In a messaging system with a given buffer size for sending or receiving messages via one or more message transports, a method of processing a message that reduces buffer requirements for at least a portion of the message, thereby allowing the messaging system to send or receive relatively larger messages using the given buffer size, the method comprising acts of: defining one or more message handlers, each identifying a corresponding processing operation to perform on a message object that comprises at least one streamed portion having a stream oriented interface; identifying and ordering one or more message handlers to be included in at least one of a plurality of message pipelines, at least one of the message pipelines being nested in another message pipeline; and calling the one or more message handlers of each message pipeline to process the message object, wherein at least one message handler wraps the at least one streamed portion of the message object with its corresponding processing operation which is to be performed at a future time, without materializing the at least one streamed portion of the message object in a buffer.