we have an application which is made up mainly of EJB. We need to control the amount of RMI requests to the server so I have tried setting a MaximumPoolSize attribute in the Thread pool configuration (jboss-service.xml). However it seems not to work. I have even tried setting this attribute to minimal values (like 1, 2) but the application server doesn't enqueue requests. Even with a MaximumQueueSize = 1 nothing changes. All requests are executed at once.
I've tried also modifying jbossjca-service.xml attributes (MaximumPoolSize) but still nothing changes.
Does the BasicThreadPool is supposed to control RMI request ?