From 7dd2a5b7b29420e3774be185bc44e4a4125de021 Mon Sep 17 00:00:00 2001 From: Michael Nitschinger Date: Thu, 23 Jan 2014 14:47:28 +0100 Subject: [PATCH] DATACOUCH-52 - Shut down CouchbaseClient bean when the context is destroyed. The shutdown method will be called on the bean when the context is closed to make sure that "no thread is left behind" running. --- .../data/couchbase/config/AbstractCouchbaseConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/data/couchbase/config/AbstractCouchbaseConfiguration.java b/src/main/java/org/springframework/data/couchbase/config/AbstractCouchbaseConfiguration.java index a48a602d..b14038f6 100644 --- a/src/main/java/org/springframework/data/couchbase/config/AbstractCouchbaseConfiguration.java +++ b/src/main/java/org/springframework/data/couchbase/config/AbstractCouchbaseConfiguration.java @@ -48,7 +48,7 @@ public abstract class AbstractCouchbaseConfiguration { * * @throws Exception on Bean construction failure. */ - @Bean + @Bean(destroyMethod = "shutdown") public abstract CouchbaseClient couchbaseClient() throws Exception; /**