You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2008/07/10 10:22:04 UTC
svn commit: r675475 -
/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/language/bean/BeanExpression.java
Author: ningjiang
Date: Thu Jul 10 01:22:04 2008
New Revision: 675475
URL: http://svn.apache.org/viewvc?rev=675475&view=rev
Log:
Added some comments in the BeanExpression
Modified:
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/language/bean/BeanExpression.java
Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/language/bean/BeanExpression.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/language/bean/BeanExpression.java?rev=675475&r1=675474&r2=675475&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/language/bean/BeanExpression.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/language/bean/BeanExpression.java Thu Jul 10 01:22:04 2008
@@ -52,7 +52,8 @@
}
try {
Exchange newExchange = exchange.copy();
- // check the exchange pattern
+ // The BeanExperession always has a result regardless of the ExchangePattern,
+ // so I add a checker here to make sure we can get the result .
if (!newExchange.getPattern().isOutCapable()) {
newExchange.setPattern(ExchangePattern.InOut);
}