Recently, I just finished my project two day ago. The problem was my
project rely heavily on message pushing from server and I used
Cairngorm standard edition, which was not support for messaging
consumer because since version 2.1 Adobe decided to separated the
enterprise feature to cairngorm enterprise version (in this case is
getConsumer() method) , which use well with only LCDS and my project
use BlazeDS, so the ugly code was happened. I was force by Cairngorm
to put some consumer logic in view and some in modelLocator very ugly
code.
When I look into swiz delegate, mediate, and view pattern (which
suggest by
http://www.returnundefined.com/2009/05/swiz-example-application-with-presentation-model-pattern).
I think I found the elegant way to refactor my latest project.
So before I start to refactor, I want to know the best practice/
pattern for working with real time messaging protocol. such as "where
should I put the message result and fault handler?" "When and Where
that I should subscribe and send and wait for messaging to coming and
going out?" etc.
Thank you in advance
Tanakorn Numrubporn