Executing a method on background

Hi,
Im doing a smart-client solution using Servoy 5.1.2 and i want to run a global method that sends some files to the server via FTP, so it can take a while. So i want it to run on background, how can i do this?

Thanks.

Only in Java (plugin), as far as I see that.

Could you explain this a lil bit more please?

Servoy is single threaded. If you call a (sub)method, your method will stop until the submethod is finished. If you write a plugin (in Java), you can do all kinds of things as long as your Java session on the client is alive (as long as the user has not closed the client). So in a plugin you can do things in an extra thread and your user can continue working; in JavaScript-Servoy as it is today, you cannot.

Servoy methods are single threading. In fact you can only run 1 method at a time.
To have background processes you could spawn a headless client process on the server to do things but you are doing FTP from the client so that wouldn’t do you much good.
So if you want anything to be multi-threading (or a background process) in your client you need to use a plugin. You say you use FTP so I assume you use a plugin for that. It’s up to this plugin to provide the background process, if it doesn’t then you could ask the author of this plugin for that.
There are already some plugins out there that allow asynchronous writing of files to the server (or client-side) filesystem or back-end database.

Hope this explains it a bit.