stuartwdouglas/jboss-as — comment on commit 0c7e938e80f485b060456a0160ba0fa0049160de
File: ejb3/src/test/resources/org/jboss/as/ejb3/subsystem/subsystem.xml line 45
By stuartwdouglas:

I think there are two things that we could do here that will help:

- Introduce a new pool that does not have an upper bound, (i.e. a pool that just caches x entities, but will create more if required)
- The GC issue would probably have been caused by the finalize() method. I am not sure if we should just remove the method or add a setting to disable instance cleanup via the finaliser.