Running Proccess in separate thread

Forum to discuss the Web client version of Servoy.

Running Proccess in separate thread

Postby Infop » Fri Aug 20, 2010 8:15 am

Hi,

Is it possible to run a process in separate thread in Web Client? So that it won't affect the normal operation.

Thanks,
User avatar
Infop
 
Posts: 151
Joined: Fri Nov 30, 2007 3:00 pm

Re: Running Proccess in separate thread

Postby Jan Aleman » Fri Aug 20, 2010 8:54 am

Yes, you can do this with the headless client plugin. It allows you to tell the server to run a method (or more) and even register a callback once it is done. Because it actually is a normal client running serverside (but with no UI) it can run the same logic as web-client apps can.

More info:
http://wiki.servoy.com/display/public/D ... lessclient
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Re: Running Proccess in separate thread

Postby Infop » Fri Aug 20, 2010 10:19 am

Great, Jan to hear about the same. It is really AWESOME!!

Does this also work in rich client as well, because, I am looking for a both Rich and Web Client compatible solution? And another thing, I noticed, It needs to create a headless client for the same. Should I need to kill that client after finish with my task?

Thanks
User avatar
Infop
 
Posts: 151
Joined: Fri Nov 30, 2007 3:00 pm

Re: Running Proccess in separate thread

Postby jcompagner » Fri Aug 20, 2010 10:25 am

yes this also works in the rich/smart client
kill it or reuse it (by that client or other clients)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Running Proccess in separate thread

Postby sbutler » Sat Aug 21, 2010 7:53 pm

We also have a video of this in Servoy University. I did one specifically on the Headless Client plugin if thats of any use to you. http://www.servoyuniversity.com
Scott Butler
iTech Professionals, Inc.
SAN Partner

Servoy Consulting & Development
Servoy University- Training Videos
Servoy Components- Plugins, Beans, and Web Components
Servoy Guy- Tips & Resources
ServoyForge- Open Source Components
User avatar
sbutler
Servoy Expert
 
Posts: 759
Joined: Sun Jan 08, 2006 7:15 am
Location: Cincinnati, OH

Re: Running Proccess in separate thread

Postby Thomas Parry » Sat Aug 21, 2010 8:49 pm

AM I correct in assuming that the headless client still consumes a client license?
So that for the duration of running the so-called "thread" that two licenses must be available?
Tom Parry
Prospect IT
Java/C++/Servoy/Jasper Reports/Simulation/Service Applications
http://www.prospect-saas.biz
Thomas Parry
 
Posts: 498
Joined: Thu Jan 10, 2008 8:48 pm
Location: Ottawa, Canada

Re: Running Proccess in separate thread

Postby Jan Aleman » Sun Aug 22, 2010 4:55 pm

Yes, headless client uses a concurrent license while running.
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth


Return to Servoy Web Client

Who is online

Users browsing this forum: No registered users and 3 guests