In WSO2 ESB, there is an In-Memory message store which can be used to store the messages with in the ESB itself.
In Memory Message Store
In Memory Message Store is the default Message Store that will be created if user does not specify any implementation from the configuration. Messages will be stored in an in-memory queue. So in case of a ESB restart, all the messages stored will be lost.
In Memory Message Store is lot more faster than any persistence message store implementations. So it can be used as a temporary storage of messages for use cases such as implementation of high speed store and forwarded patterns where message persistence is not a requirement.
http://docs.wso2.org/wiki/display/ESB460/Message+Stores
Here is another article on message stores.
http://techfeast-hiranya.blogspot.com/2012/01/wso2-esb-tips-tricks-08-message-stores.html