I would like to implement concurrent stuff in Spring. A bit more in detail:
A request comes in, depending on the request in the backend 0 to n parallel process must be started which all fill some data somewhere, until they are all done the request handler (spring based servlet) must block but when all are done it must continue.
As I am old skool I would usually think of using Java Threads or some library based on that, but I am a bit unsafe, because I remember in the EJB specification threads were not "allowed", but I have no idea how that is in Spring..looks like it is "allowed".
Currently I try to solve this problem with a JMS queue, but as all happens in one VM obviously this is an overload (at least 2 serialisations of the same object per request).
Thanks! This is very important and quite urgent! Thanks again!