Scripting with beanshell - making a thread solution...
Ok here is the problem i have and are looking for ideas how to solve it. We have a single threadded server that are using beanshell scripts.
Now... inside the scripts we want to be able to sleep (wait).
For example:
void run(){
print("test");
wait(5);// wait 5 seconds
print("test2");
}
So what i would basically want is that the script is put into somekind of queue, where it will reside for 5 seconds. And then the server would step through the queue and if 5 seconds has passed it would continue executing...
Is there any "easy" solution to fix this?

