users@jersey.java.net

[Jersey] Factory.dispose is not called

From: Gordan Krešić <gordan.kresic_at_steatoda.com>
Date: Wed, 03 Jun 2015 11:39:24 +0200

Using Jersey 2.17, I'm facing exactly the same situation as described in
this (resolved, fixed) bug:

        https://java.net/jira/browse/JERSEY-2299

No matter what I try, Factory.dispose(...) is not called.

I'm using workaround as described at http://stackoverflow.com/a/20200538
(@Inject-ing CloseableService and registering my own Closeable), but it
seems that Factory.dispose should be much cleaner way to do it, if it worked
correctly.

-- 
Gordan Krešić
Steatoda d.o.o.
mailto:gordan.kresic_at_steatoda.com
tel:// +385 1 38 32 456
mob:// +385 91 514 9112