Hi I am going to create an interface named ReusablePool, this is considered to be implemented as an object pool
now because our application may deploy in any application server such as Glassfish or Websphere etc, depend on what our customer requires to be. so I have to desgn it in a way so we can use the features of the application servers. this is the issue for using Thread pools as well. since we have an interface for using thread pools and we need to use application servers features.
I want to know the best design that we can set some configuration in a config xml file, say, maximum pool size, jndi name to look it up, etc and the developer does not worry about the implementation and just think of his code.