Feb 11th, 2011, 02:20 PM
I already have a Java application and I'm planning to rewrite it from the scratch using Spring IoC and DI.
Anyway, my biggest concern at this point is one part of application because I'm not entirely sure how to solve the problem.
The situation looks like this: using Flex client I am calling server-side method (Java) which creates new Threaded instance of class, say Robot, which executes some complicated operations for couple of hours.
There can be only one instance of Robot and I should be able to retrieve some informations from it on-demand as opposed to server->client communication, so I have to keep the link to the instance somewhere.
What would be the best way to achieve it, design-wise?