camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bvah...@apache.org
Subject git commit: Resolved the deprecated API usage after upgrade to Ehcache 2.7.0.
Date Fri, 31 May 2013 17:53:58 GMT
Updated Branches:
  refs/heads/master 8c57bd4d2 -> 9016ac6a2


Resolved the deprecated API usage after upgrade to Ehcache 2.7.0.

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/9016ac6a
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/9016ac6a
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/9016ac6a

Branch: refs/heads/master
Commit: 9016ac6a22871097ce55d47a4af166f7c73a1f0f
Parents: 8c57bd4
Author: Babak Vahdat <bvahdat@apache.org>
Authored: Fri May 31 19:53:51 2013 +0200
Committer: Babak Vahdat <bvahdat@apache.org>
Committed: Fri May 31 19:53:51 2013 +0200

----------------------------------------------------------------------
 .../camel/component/cache/CacheProducer.java       |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/9016ac6a/components/camel-cache/src/main/java/org/apache/camel/component/cache/CacheProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-cache/src/main/java/org/apache/camel/component/cache/CacheProducer.java
b/components/camel-cache/src/main/java/org/apache/camel/component/cache/CacheProducer.java
index 5ec95fa..f0ef4c9 100755
--- a/components/camel-cache/src/main/java/org/apache/camel/component/cache/CacheProducer.java
+++ b/components/camel-cache/src/main/java/org/apache/camel/component/cache/CacheProducer.java
@@ -95,7 +95,7 @@ public class CacheProducer extends DefaultProducer {
             LOG.debug("Quering an element with key {} from the Cache", key);
             if (cache.get(key) != null) {
                 exchange.getIn().setHeader(CacheConstants.CACHE_ELEMENT_WAS_FOUND, true);
-                exchange.getIn().setBody(cache.get(key).getValue());
+                exchange.getIn().setBody(cache.get(key).getObjectValue());
             } else {
                 exchange.getIn().removeHeader(CacheConstants.CACHE_ELEMENT_WAS_FOUND);
             }


Mime
View raw message