After a week to struggle with jquery (js framework) and nitrogen, I able to write some small web 2 applications. But it is appear that a trading client is more complex than the system!!!
First the web application not suite for a high reliable trading platform – few of trading softwares written in web.
Second, I want implement a push-technology not a polling one (use in my company Vb.net software). So it double my work.

Main idea is a User agent process. When a user login, a User agent which global register with username created. The User agent bond with Session so if user logout or session timeout, it will be destroyed. Next time, user must login again to create a new User agent. So a User agent represent for a login user.
With global register name, there is a unique user agent per a user existed. If the same user login from other computer, the current user agent kicked out. Current user logout with error message – login from other computer(like yahoo email).
Pages interact with User agent by subscribe an event. User agent will push events to subscribe pages. Then the page push event to user browser via comet connection.
Other method to interact with user agent is job. Job is a block process, User agent will stop handle other event until the job not completed nor timeout (or crash). Job also stopped if user agent destroyed.
