>
> It works perfectly in that whenever an incoming TXN is routed to
> system A, each BE node is used in a round robin fashion.
>
> Is this the best way to accomplish this? I reviewed MUXPool and
> ChannelPool but I could not figure out how to have it work in this
> manner.
>
If it's working, don't fix it.. :) - if you need more performance, you
can consider moving your SpaceLet code to a SpaceInterceptor (basically
same concept, but you compile your run method in Java).
BTW, I think we could make that very easy for you if we modify the
SpaceLet implementation so that 'run' could accept an optional 'class'
argument where you can pass a Runnable and optionally Configurable
object, i.e:
<run class="your.company.YourRunnable" />
Anyway, I wonder why you couldn't do that with a MUXPool, I'm probably
not understanding your use case here, can you clarify?
Once you have everything ironed out you may just want to have a 'run'
method written in Java. This could be as easy as starting a new Runnable
from the <run>...</run> script and passing it appropriate parameters.
In that case, the BSH overhead would just happen once at startup.
--Alejandro