otm:ordering_of_messages:fifo

This is an old revision of the document!


Every day, mashup applications are more present. These applications are created with requests to several servers. Developers have to overcome the issue of creating wrong page due to unexpected order of executions of responses. For instance, consider a website that creates a web page from two requests. If the second response is executed before the first response, the web page is created incorrectly. Instead, the if the first response is executed before the second response, the web page is created correctly.

When the activate order is clicked, the web page always is created correctly. When the deactive order is clicked

var discardLate = function(jp) {
  if(!this.isLate(jp)){     //is obsolete this join point?
    jp.proceed();
    this.updateCr(jp); //notifies that join point was executed.
  }
}

The implementation follows: Toggle between the code and example

  • otm/ordering_of_messages/fifo.1294414312.txt.gz
  • Last modified: 2011/01/07 11:31
  • by aspectscript