> Help is always welcome. This one is tricky to describe, so I'm going > to try the Mr. Wizzard approach and list the "ingredients" first. Ok, > so for this functionality, we need: > > - a thread pool (java.util.concurrent.Executor) -- can use a > standard impl > - a java.util.concurrent.FutureTask > - a java.util.concurrent.Callable -- we will have to make one of these > > The callable will be a class that does the actual execution of the > async method, we'll be constructing one per method call passing in the > method to be invoked, the object itself, and the parameters. > > In the main request thread we will not invoke the target method > directly, instead we will: > > 1. construct a Callable object that contains all the information to > do the invocation > 2. construct a FutureTask using the Callable > 3. give the FutureTask to the Executor > 4. return the FutureTask as the return value > > We don't need to plum all this into the container code just yet. > Initially we just need a little class (maybe add it to > org.apache.openejb.util) that wraps all of this up and some test cases > for it. We can worry about the when and where to use it question > later -- it's much tricker and far less isolated. > > Hopefully this is enough to get started if you're interested in > hacking on it. Ok, leave it to me, I'll hack on this, as it seems interesting and not extremely hard... However, if things go wrong, I'll come back crying out for help ;)
> > -David > > > And, do you have an idea about when OpenEJB 3.1.3 will be released? > > No date has been set yet, do you have a preference? No, just want to be sure that it will be released, and not just be forgotten because of the version 3.? / 4.? which will implement EJB 3.1 xD -- Luis Fernando Planella Gonzalez
