This is a discussion on Live Streaming of Sysout and SysErr onto the JSP Page on executing a testcase within the AJAX Web Services forums, part of the Advanced Ajax category; Hei ppl I am new to this forum. In my project I am running, say 10 testcases at a time using junit.textui.TestRunner.run(). The Sysout and Syserr are moved into a ...
|
|||||||
|
|
#1 (permalink) |
|
Junior Member
Join Date: Oct 2009
Posts: 1
Rep Power: 0 ![]() |
Hei ppl
I am new to this forum. In my project I am running, say 10 testcases at a time using junit.textui.TestRunner.run(). The Sysout and Syserr are moved into a DB once the testcase execution is complete and I display the results (including Success State and SysOut and SysErr, if applicable)from the DB. Right now the task I have in front of me is that I need to stream the Sysout and SysErr live (while the testcases are executing) to the JSP. Thought Ajax would be a great option for this. I tried moving the Sysout to a string while the testcase is executing and then refresh the JSP page every 2 secs such that the JSP calls a servlet which fetches the updated Sysout string and displays it in the same JSP. This page refresh is too costly and a pain of overload on the server. Thats the main reason why I thought of using Ajax for this matter. Can someone shed some idea on a way to accomplish this. I have read thru polling, comet/longpolling, piggy back techniques. But I am nt sure how to implement those. Do u think any of these is really required or is there a difft easy efficient method? I use a JAVA SERVLET - JSP - DB (MVC) model for my project. |
|
|
|
| Sponsored Links | |
![]() |
| Bookmarks |
| Tags |
| ajax, jsp, live streaming |
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Enterprise-Scale Streaming AJAX | microbee | AJAX Help | 0 | 01-13-2007 11:13 PM |