Skip to content
Permalink
Browse files
Applied patch for TRANSPORTS-51.
  • Loading branch information
Sagara Gunathunga committed May 14, 2012
1 parent 39f23ff commit b3dfd9436f3a566eff6c11cc209a763c52dad72d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
@@ -123,6 +123,8 @@ private void digestCacheLevel() {
this.cacheLevel = JMSConstants.CACHE_CONSUMER;
} else if ("producer".equals(val)) {
this.cacheLevel = JMSConstants.CACHE_PRODUCER;
} else if ("consumer".equals(val)) {
this.cacheLevel = JMSConstants.CACHE_CONSUMER;
} else if (val != null) {
throw new AxisJMSException("Invalid cache level : " + val + " for JMS CF : " + name);
}
@@ -303,6 +303,8 @@ private static int getCacheLevel(Map<String,String> svcMap, Map<String,String> c
return JMSConstants.CACHE_SESSION;
} else if ("consumer".equals(val)) {
return JMSConstants.CACHE_CONSUMER;
} else if ("producer".equals(val)) {
return JMSConstants.CACHE_PRODUCER;
} else if (val != null) {
throw new AxisJMSException("Invalid cache level : " + val);
}

0 comments on commit b3dfd94

Please sign in to comment.