Is it possible to distribute threads in Thread Pool over nodes of GlassFish 3.1.1 cluster?
I want to distribut开发者_JAVA技巧e threads in Thread Pool over nodes of GlassFish 3.1.1 cluster. Is it possible ? If not, how I can use GlassFish cluster for distributed execution of threads ?
Thanks
I suppose it depends on the nature of your application. The way we handle this is to push the thread logic down into an MDB. From there you can control how many MDB's run on each node in the cluster using the bean pool size.
精彩评论