Hello Laurent,
I know that it could be done as you wrote through the DataProvider.
The problem is that we need to know the client id everywhere inside the code without pass this info through all the program.
We know the client id from the DataProvider in "MyTask extends AbstractTask<String>" but I do not have this info in my instance which is called by other 20 instancies.
We use our own ClassLoader which reads class files from directory identified by client_id = each client has own classes which are loaded dynamically.
I know that is possible to get the client class loader by
ClassLoader loader = Thread.currentThread().getContextClassLoader();
So you allways know which client's code is processed.
As I know from doc each client has own ClassLoader
http://www.jppf.org/doc/v3/index.php?title=Class_loading_in_JPPFFrom this I think that should be possible to get the client_id from any part of code. What do you think about it?
Thanks,
Tomas