Geronimo connector already does that with its connections proxying. There is a phantom tracker IIRC.
Do you know in which case we would leak connections? Last time I checked it was only possible if missing a close which is a programming miss. Is that the case we want to deal with? Le 18 nov. 2015 04:32, "agumbrecht" <agumbre...@tomitribe.com> a écrit : > This seems to be the best candidate location to wrap the ConnectionFactory: > > org/apache/openejb/InjectionProcessor.java:243 > > Adding if(ConnectionFactory.class.isInstance(value)){value = ..wrapper..} > would work here. > > However, is there a way to 'event' the wrapping without too much overhead? > - > I'm thinking of a more general way of saying - hey pre-injection event > listener here is an object value I am about to inject into this class, do > you want to wrap it first. > > Andy. > > > > > > ----- > -- > Andy Gumbrecht > > http://www.tomitribe.com > agumbre...@tomitribe.com > https://twitter.com/AndyGeeDe > > TomEE treibt Tomitribe ! | http://tomee.apache.org > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/ActiveMQ-connection-wrapper-tp4676832p4676834.html > Sent from the TomEE Dev mailing list archive at Nabble.com. >