[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: re: Feedback requested on throttling ejb calls

ScottMarlowNovell do-not-reply at jboss.com
Fri Nov 9 09:52:03 EST 2007


I'm tempted to have a standalone module manage the named semaphores (perhaps called SemaphoreManager).  The SemaphoreManager api methods could be used for reconfiguration (JMX aspect could expose them in the JMX console.)

The api should allow:

   * List all named semaphores (show name, total permit count + current available permits)
   * Increase number of permits for a named semaphore
   * Decrease number of permits for a named semaphore


I'm still trying to understand how all of this AOP stuff works together.  I see that the SemaphoreAspect is loosely coupled with the underlying semaphore instance via the SemaphoredObject class.  Should we have a SemaphoreFactory class that can return a SemaphoredObject implementation that is based on a named semaphore?  I suppose that the SemaphoreFactory could also return a SemaphoredObject based on an anonymous semaphore as well.

The SemaphoreFactory factory would depend on the SemaphoreManager for resolving the semaphore instances.

Make any sense?

On a different node, I can build trunk with "mvn install" command.  I would like to run the testsuite but "mvn test" doesn't seem to do much.  How can I run the unit tests?

Scott

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103271#4103271

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103271



More information about the jboss-dev-forums mailing list