Can anyone suggest me on how to create custom object pool using JSR standard?
I am now running my application on WebSphere 6.1 and would like to create my own object pool to handle object with the socket connection opened to another system so that it can be reused.
I also would like to ensure that that object in the pool should be properly evicted from the pool when its life time reach the limitation. I also notice there is code for this in Apache open source the Apache Common pool. Only one concern I have with it is the amount of synchronized methods used this means the in highly concurrent code this will not function efficiently.