[jboss-dev-forums] [Design of JBoss ESB] - Re: JCRMessageStoreImpl store only message body?

maeste do-not-reply at jboss.com
Tue May 20 11:13:52 EDT 2008


"mark.little at jboss.com" wrote : We should definitely be storing the entire message. I'd suggest adding some option (maybe on the message) that indicates the duration for which it can be stored and, when it gets deleted by the store, we should have a "grave stone" (marker) for it so that we don't break referential integrity.
  | 

Is really it a responsibility you would leave totally in charge to message? Isn't it a governance responsibility?
I would prefer message is responsible to classify itself in a more abstract manner (maybe some properties?), and leave to repository the decision how longer messages have to be stored. 
DNA could in fact classify messages, on properties base, and (maybe) refine this classification using metadata extracted by sequencer. This way drive to put configuration about repository at a different (higher) tier, where the decision of how long we keep them could depend also on which kind of use we would do of them (of course different kinds of analysis need different store duration).
Of course it's just my humble opinion.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152059#4152059

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152059



More information about the jboss-dev-forums mailing list