10 Replies Latest reply on Nov 12, 2007 7:03 AM by Kabir Khan

    re: Feedback requested on throttling ejb calls

    Scott Marlow Master

      Hi,

      This is a cross post of http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101466

      I posted on the EJB design forum about having a way to throttle ejb method invocations and Scott suggested creating an aop throttling aspect (like the asynch.* scheme).

      The throttle is backed by a java.util.concurrent.Semaphore that would allow a configured number of concurrent thread requests (really semaphore permits under the covers) to proceed through the aspect.

      I have this working with JBoss 4.x at the pooledInvoker level (no aspects involved) but would like to bring it into JBoss 5.x.

      What do you think about the idea of having a throttling aspect?

      Scott