Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Client push
Client push [message #1159305] Mon, 28 October 2013 12:41 Go to next message
Igor Zapletnev is currently offline Igor ZapletnevFriend
Messages: 33
Registered: September 2012
Member
I am investigating web client implementation and as far as I understood it works in way request-respose. Client always sends json request and takes json as well. Where is no case when server sends something to the client.

Because of that I interesting in situations like this:

createUI(){
...
Display display = RWT.getCurrent();
new Job(""){
    protected IStatus run(IProgressMonitor monitor) {
        display.asyncExec(new Runnable() {
              // perform some UI modifications (changing labels, etc)
        });
    }
}.schedule(10000L);


Now my code will never called. Is it means that all delayed UI jobs never will be executed? Or I missed something?
Re: Client push [message #1159474 is a reply to message #1159305] Mon, 28 October 2013 15:07 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Igor,
you are right. If a job is scheduled for execution outside running
request it will be executed with the follow up request. See bug
390329: UIJob is scheduled but not executed on UI Thread
https://bugs.eclipse.org/bugs/show_bug.cgi?id=390329
Best,
Ivan

On 10/28/2013 2:41 PM, Igor Zapletnev wrote:
> I am investigating web client implementation and as far as I
> understood it works in way request-respose. Client always sends json
> request and takes json as well. Where is no case when server sends
> something to the client.
>
> Because of that I interesting in situations like this:
>
>
> createUI(){
> ..
> Display display = RWT.getCurrent();
> new Job(""){
> protected IStatus run(IProgressMonitor monitor) {
> display.asyncExec(new Runnable() {
> // perform some UI modifications (changing labels, etc)
> });
> }
> }.schedule(10000L);
>
>
> Now my code will never called. Is it means that all delayed UI jobs
> never will be executed? Or I missed something?

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Client push [message #1160358 is a reply to message #1159474] Tue, 29 October 2013 04:47 Go to previous message
Igor Zapletnev is currently offline Igor ZapletnevFriend
Messages: 33
Registered: September 2012
Member
Thanks, ServerPushSession is exactly what I want. Smile
Previous Topic:Maven/Tycho directory-based target
Next Topic:ClientScripting restricted DOM navigation
Goto Forum:
  


Current Time: Thu Apr 25 09:09:00 GMT 2024

Powered by FUDForum. Page generated in 0.03226 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top