[CONF] Apache Camel Articles

2010-07-04 Thread confluence







Articles
Page edited by Claus Ibsen


 Changes (1)
 



...
* [Using Apache Camel from Clojure|http://codeabout.blogspot.com/2010/06/using-apache-camel-from-clojure.html] by Jason Whitlark. A blog entry how to get Camel working with the [Clojure|http://clojure.org/] programming language. * [A composite REST service using Apache Camel|http://www.andrejkoelewijn.com/wp/2010/06/13/a-composite-rest-service-using-camel/] by Andrej Koelewijn. A blog entry how to expose a REST service and have Camel aggregate data from multiple sources to be returned. 
* [Getting Started with Apache Camel and prepare for Apache ServiceMix deployment|http://magnus-k-karlsson.blogspot.com/2010/07/getting-started-with-apache-camel-and.html] by Magnus K Karlsson shows a test driven example how to start with Camel and the ServiceMix combo. 
 h2. Presentations on Camel 
...

Full Content

See alsoSee also Camel User Stories.

Articles on Apache Camel

	A bit more meat: Camel applied : JMS to File by Mike McLean
	Mathew Thomas posted his thoughts on Apache Camel including a sample project
	Matteo wrote a blog entry about using Camel with iBatis
	Knowledge Tree integration using Apache Camel
	Integrating Apache Camel with JBoss ESB by Edgar Ankiewsky
	Simple DSL OSGi bundle example by Andrej Koelewijn
	Realization of EAI Patterns with Apache Camel by Pascal Kolb at the Universität Stuttgart
	Using Camel with Maven to access web services and message queues by Glen Mazza
	Spring Remoting with JMS Example on Amin Abbaspour's Weblog
	Implementing Fuji integration scenario using Camel SE by Louis Polycarpou on using Camel with Open ESB
	Using the Camel aggregator correctly by Torsten Mielke, a great blog entry how to use the Camel aggregator.
	Camel routes and HL7 by Roger Searjeant on using Camel and its HL7 support in the health care space.
	Combining ApacheCamel+BSF to make JBoss ESB polyglot by Edgard Ankiewsky Silva, a JBoss employeer.
	Groovy and Grape - easiest way to send gtalk message with Apache Camel by Andrej Koelewijn how easy it is to use Groovy and Grape to quickly try out new frameworks such as Apache Camel.
	Domain-Specific Languages (DSLs) in Apache Camel (Spanish) by Gema Perdiguero, Tecsisa.
	Apache Camel integration in ServiceMix (Spanish) by Sebastián Gómez, Tecsisa.
	Apache Camel: Integration Nirvana by Jonathan Anstey Great for learning what Camel is and what it can do
	Leverage EIP with Apache Camel and Twitter by Bruno Borges
	Apache Camel Reference Card at DZone (the first card out of two) by Claus Ibsen
	Using RSS with Apache Camel by Jeroen Reijn
	Using Groovy and Camel to pool Google Analyst email reports by Mr. Haki
	Using grails-camel plugin to work with Camel in Grails land by Mr. Haki
	Send mail with Apache Camel from Gails by Mr. Haki
	Navigating the Integration Landscape - Claus Ibsen on Apache Camel Claus Ibsen was interviewed at DZone discussing the integration landscape
	Apache Camel: Enterprise Integration met scripttalen en DSLs (Dutch) by Peter Maas, Finalist IT Group.
	Axis 2 ride with Camel how to use Axis 2 with the Camel report incident tutorial by Sagara
	Introduction to the Open eHealth Integration Platform (based on top of Apache Camel) Excellent DZone article by Martin Krasser
	An IRC alerter written using Apache Camel and Java how to easily integrate IRC with Camel to monitor and do alerts.
	Entreprise Integration Pattern with Apache Camel 2.0 by Julien Dechmann, how to use Camel to split and transform CSV files to POJO and XML and sending to a JMS destination
	A Camel based XML payload HTTP polling provider by Christopher Hunt to use Camel with AJAX. Interesting read.
	Camel vs. JBI by Adrian Trenaman.
	Things to consider when selecting between Apache Camel and Apache Servicemix by Ashwin Karpe
	Groovy and Camel for monitoring ActiveMQ by Eric Hauser how to monitor AMQ Advisory queues from a single groovy file.
	Camellos - Discovering Apache Camel by Gunnar Hillert. A very nice and short blog series about Camel showing its powers in a simple and intuitive way. Highly recommended for new users
	Apache Camel alternatives by Gunnar Hillert. He presents a brief overview of other projects in the integration space.
	First steps with Apache Camel on Google App Engine by Martin Krasser posts his findings to get Camel running on the GAE.
	A jira notification system for irc using Camel by Guillaume Nodet - all code is in a single XML hot deployed in Apache Karaf.
	Camel, CXF and JMS by Example by Silvester van der Bijl. Good blog entry how to use CXF and Camel together.
	A simple file monitoring console with camel, cometd and jquery by Andrej Koelewijn. Shows how to use Camel to monitor log files and push lines changed using cometd to a webpage. All in a few files using 

[CONF] Apache Camel Articles

2010-07-04 Thread confluence







Articles
Page edited by Claus Ibsen


 Changes (1)
 



...
* [A composite REST service using Apache Camel|http://www.andrejkoelewijn.com/wp/2010/06/13/a-composite-rest-service-using-camel/] by Andrej Koelewijn. A blog entry how to expose a REST service and have Camel aggregate data from multiple sources to be returned. * [Getting Started with Apache Camel and prepare for Apache ServiceMix deployment|http://magnus-k-karlsson.blogspot.com/2010/07/getting-started-with-apache-camel-and.html] by Magnus K Karlsson shows a test driven example how to start with Camel and the ServiceMix combo. 
* [A practical example of using Camel and Groovy to post russian currency rates on Twitter|http://github.com/dulanov/cbrru-agent] *in russia* by [dulanov|https://twitter.com/dulanov]. 
  
...

Full Content

See alsoSee also Camel User Stories.

Articles on Apache Camel

	A bit more meat: Camel applied : JMS to File by Mike McLean
	Mathew Thomas posted his thoughts on Apache Camel including a sample project
	Matteo wrote a blog entry about using Camel with iBatis
	Knowledge Tree integration using Apache Camel
	Integrating Apache Camel with JBoss ESB by Edgar Ankiewsky
	Simple DSL OSGi bundle example by Andrej Koelewijn
	Realization of EAI Patterns with Apache Camel by Pascal Kolb at the Universität Stuttgart
	Using Camel with Maven to access web services and message queues by Glen Mazza
	Spring Remoting with JMS Example on Amin Abbaspour's Weblog
	Implementing Fuji integration scenario using Camel SE by Louis Polycarpou on using Camel with Open ESB
	Using the Camel aggregator correctly by Torsten Mielke, a great blog entry how to use the Camel aggregator.
	Camel routes and HL7 by Roger Searjeant on using Camel and its HL7 support in the health care space.
	Combining ApacheCamel+BSF to make JBoss ESB polyglot by Edgard Ankiewsky Silva, a JBoss employeer.
	Groovy and Grape - easiest way to send gtalk message with Apache Camel by Andrej Koelewijn how easy it is to use Groovy and Grape to quickly try out new frameworks such as Apache Camel.
	Domain-Specific Languages (DSLs) in Apache Camel (Spanish) by Gema Perdiguero, Tecsisa.
	Apache Camel integration in ServiceMix (Spanish) by Sebastián Gómez, Tecsisa.
	Apache Camel: Integration Nirvana by Jonathan Anstey Great for learning what Camel is and what it can do
	Leverage EIP with Apache Camel and Twitter by Bruno Borges
	Apache Camel Reference Card at DZone (the first card out of two) by Claus Ibsen
	Using RSS with Apache Camel by Jeroen Reijn
	Using Groovy and Camel to pool Google Analyst email reports by Mr. Haki
	Using grails-camel plugin to work with Camel in Grails land by Mr. Haki
	Send mail with Apache Camel from Gails by Mr. Haki
	Navigating the Integration Landscape - Claus Ibsen on Apache Camel Claus Ibsen was interviewed at DZone discussing the integration landscape
	Apache Camel: Enterprise Integration met scripttalen en DSLs (Dutch) by Peter Maas, Finalist IT Group.
	Axis 2 ride with Camel how to use Axis 2 with the Camel report incident tutorial by Sagara
	Introduction to the Open eHealth Integration Platform (based on top of Apache Camel) Excellent DZone article by Martin Krasser
	An IRC alerter written using Apache Camel and Java how to easily integrate IRC with Camel to monitor and do alerts.
	Entreprise Integration Pattern with Apache Camel 2.0 by Julien Dechmann, how to use Camel to split and transform CSV files to POJO and XML and sending to a JMS destination
	A Camel based XML payload HTTP polling provider by Christopher Hunt to use Camel with AJAX. Interesting read.
	Camel vs. JBI by Adrian Trenaman.
	Things to consider when selecting between Apache Camel and Apache Servicemix by Ashwin Karpe
	Groovy and Camel for monitoring ActiveMQ by Eric Hauser how to monitor AMQ Advisory queues from a single groovy file.
	Camellos - Discovering Apache Camel by Gunnar Hillert. A very nice and short blog series about Camel showing its powers in a simple and intuitive way. Highly recommended for new users
	Apache Camel alternatives by Gunnar Hillert. He presents a brief overview of other projects in the integration space.
	First steps with Apache Camel on Google App Engine by Martin Krasser posts his findings to get Camel running on the GAE.
	A jira notification system for irc using Camel by Guillaume Nodet - all code is in a single XML hot deployed in Apache Karaf.
	Camel, CXF and JMS by Example by Silvester van der Bijl. Good blog entry how to use CXF and Camel together.
	A simple file monitoring console with camel, cometd and jquery by Andrej Koelewijn. Shows how to use Camel to monitor log files and push lines changed using cometd to a webpage. All in a few files using Groovy.
	A Groovy ride on Camel by Jack Hung. Shows how to use Groovy 

svn commit: r960425 - in /camel/trunk: camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java components/camel-core-osgi/src/main/java/org/apache/camel/core/osgi/OsgiPackageScanClassResolver

2010-07-04 Thread ningjiang
Author: ningjiang
Date: Mon Jul  5 03:07:01 2010
New Revision: 960425

URL: http://svn.apache.org/viewvc?rev=960425view=rev
Log:
Fixed CS errors

Modified:
camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java

camel/trunk/components/camel-core-osgi/src/main/java/org/apache/camel/core/osgi/OsgiPackageScanClassResolver.java

Modified: 
camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java?rev=960425r1=960424r2=960425view=diff
==
--- 
camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java 
(original)
+++ 
camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java 
Mon Jul  5 03:07:01 2010
@@ -1102,9 +1102,9 @@ public final class ObjectHelper {
 if (value instanceof Boolean) {
 return (Boolean)value;
 } else if (value instanceof String) {
-if (true.equals(value)) {
+if (true.equalsIgnoreCase((String)value)) {
 return true;
-} else if (false.equals(value)) {
+} else if (false.equalsIgnoreCase((String)value)) {
 return false;
 }
 }

Modified: 
camel/trunk/components/camel-core-osgi/src/main/java/org/apache/camel/core/osgi/OsgiPackageScanClassResolver.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-core-osgi/src/main/java/org/apache/camel/core/osgi/OsgiPackageScanClassResolver.java?rev=960425r1=960424r2=960425view=diff
==
--- 
camel/trunk/components/camel-core-osgi/src/main/java/org/apache/camel/core/osgi/OsgiPackageScanClassResolver.java
 (original)
+++ 
camel/trunk/components/camel-core-osgi/src/main/java/org/apache/camel/core/osgi/OsgiPackageScanClassResolver.java
 Mon Jul  5 03:07:01 2010
@@ -63,7 +63,7 @@ public class OsgiPackageScanClassResolve
 private SetString getImplementationsInBundle(PackageScanFilter test, 
String packageName) {
 try {
 Bundle[] bundles;
-if (bundle.getBundleContext()!= null) {
+if (bundle.getBundleContext() != null) {
 bundles = bundle.getBundleContext().getBundles();
 } else {
 bundles = new Bundle[]{bundle};




svn commit: r960428 - in /camel/trunk/camel-core/src: main/java/org/apache/camel/builder/ValueBuilder.java test/java/org/apache/camel/processor/ChoiceWithSimpleExpressionTest.java

2010-07-04 Thread ningjiang
Author: ningjiang
Date: Mon Jul  5 03:18:36 2010
New Revision: 960428

URL: http://svn.apache.org/viewvc?rev=960428view=rev
Log:
CAMEL-2906 ValueBuilder provides DSL for Predicate

Added:

camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ChoiceWithSimpleExpressionTest.java
   (with props)
Modified:

camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ValueBuilder.java

Modified: 
camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ValueBuilder.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ValueBuilder.java?rev=960428r1=960427r2=960428view=diff
==
--- 
camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ValueBuilder.java 
(original)
+++ 
camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ValueBuilder.java 
Mon Jul  5 03:18:36 2010
@@ -51,11 +51,16 @@ public class ValueBuilder implements Exp
 
 // Predicate builders
 // 
-
-
+// this method will be removed , please use 
PredicateBuilder.toPredicate(Expression) 
+@Deprecated
 public Predicate matches(Expression expression) {
 return onNewPredicate(PredicateBuilder.toPredicate(expression));
 }
 
+public Predicate matches() {
+return onNewPredicate(PredicateBuilder.toPredicate(expression));
+}
+
 public Predicate isNotEqualTo(Object value) {
 Expression right = asExpression(value);
 return onNewPredicate(PredicateBuilder.isNotEqualTo(expression, 
right));
@@ -97,7 +102,7 @@ public class ValueBuilder implements Exp
 public Predicate isNotNull() {
 return onNewPredicate(PredicateBuilder.isNotNull(expression));
 }
-
+   
 public Predicate not(Predicate predicate) {
 return onNewPredicate(PredicateBuilder.not(predicate));
 }

Added: 
camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ChoiceWithSimpleExpressionTest.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ChoiceWithSimpleExpressionTest.java?rev=960428view=auto
==
--- 
camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ChoiceWithSimpleExpressionTest.java
 (added)
+++ 
camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ChoiceWithSimpleExpressionTest.java
 Mon Jul  5 03:18:36 2010
@@ -0,0 +1,40 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the License); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.processor;
+
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.mock.MockEndpoint;
+import static org.apache.camel.component.mock.MockEndpoint.expectsMessageCount;
+
+/**
+ * @version $Revision$
+ */
+public class ChoiceWithSimpleExpressionTest extends ChoiceTest {
+
+protected RouteBuilder createRouteBuilder() {
+return new RouteBuilder() {
+public void configure() {
+from(direct:start).choice()
+  .when(simple(${header.foo} == 
'bar').matches()).to(mock:x)
+  .when(simple(${in.header.foo} == 
'cheese').matches()).to(mock:y)
+  .otherwise().to(mock:z).end().to(mock:end);
+}
+};
+}
+
+}

Propchange: 
camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ChoiceWithSimpleExpressionTest.java
--
svn:eol-style = native

Propchange: 
camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ChoiceWithSimpleExpressionTest.java
--
svn:keywords = Rev Date




svn commit: r960448 - in /camel/trunk/camel-core/src: main/java/org/apache/camel/builder/ test/java/org/apache/camel/builder/ test/java/org/apache/camel/processor/

2010-07-04 Thread davsclaus
Author: davsclaus
Date: Mon Jul  5 05:19:32 2010
New Revision: 960448

URL: http://svn.apache.org/viewvc?rev=960448view=rev
Log:
CAMEL-2906: Introduced SimpleBuilder to make it easy to use simple language in 
Java DSL as both Expression/Predicate.

Added:

camel/trunk/camel-core/src/main/java/org/apache/camel/builder/SimpleBuilder.java
   (with props)

camel/trunk/camel-core/src/test/java/org/apache/camel/builder/SimpleBuilderTest.java
   (with props)
Modified:

camel/trunk/camel-core/src/main/java/org/apache/camel/builder/BuilderSupport.java

camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ValueBuilder.java

camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ChoiceWithSimpleExpressionTest.java

Modified: 
camel/trunk/camel-core/src/main/java/org/apache/camel/builder/BuilderSupport.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/BuilderSupport.java?rev=960448r1=960447r2=960448view=diff
==
--- 
camel/trunk/camel-core/src/main/java/org/apache/camel/builder/BuilderSupport.java
 (original)
+++ 
camel/trunk/camel-core/src/main/java/org/apache/camel/builder/BuilderSupport.java
 Mon Jul  5 05:19:32 2010
@@ -132,8 +132,8 @@ public abstract class BuilderSupport {
 /**
  * Returns a simple expression value builder
  */
-public ValueBuilder simple(String value) {
-return Builder.simple(value);
+public SimpleBuilder simple(String value) {
+return SimpleBuilder.simple(value);
 }
 
 /**

Added: 
camel/trunk/camel-core/src/main/java/org/apache/camel/builder/SimpleBuilder.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/SimpleBuilder.java?rev=960448view=auto
==
--- 
camel/trunk/camel-core/src/main/java/org/apache/camel/builder/SimpleBuilder.java
 (added)
+++ 
camel/trunk/camel-core/src/main/java/org/apache/camel/builder/SimpleBuilder.java
 Mon Jul  5 05:19:32 2010
@@ -0,0 +1,51 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the License); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.builder;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.Expression;
+import org.apache.camel.Predicate;
+
+/**
+ * Creates an {...@link org.apache.camel.language.Simple} language builder.
+ * p/
+ * This builder is available in the Java DSL from the {...@link RouteBuilder} 
which means that using
+ * simple language for {...@link Expression}s or {...@link Predicate}s is very 
easy with the help of this builder.
+ *
+ * @version $Revision$
+ */
+public class SimpleBuilder implements Predicate, Expression {
+
+private final String text;
+
+public SimpleBuilder(String text) {
+this.text = text;
+}
+
+public static SimpleBuilder simple(String text) {
+return new SimpleBuilder(text);
+}
+
+public boolean matches(Exchange exchange) {
+return 
exchange.getContext().resolveLanguage(simple).createPredicate(text).matches(exchange);
+}
+
+public T T evaluate(Exchange exchange, ClassT type) {
+return 
exchange.getContext().resolveLanguage(simple).createExpression(text).evaluate(exchange,
 type);
+}
+
+}

Propchange: 
camel/trunk/camel-core/src/main/java/org/apache/camel/builder/SimpleBuilder.java
--
svn:eol-style = native

Propchange: 
camel/trunk/camel-core/src/main/java/org/apache/camel/builder/SimpleBuilder.java
--
svn:keywords = Rev Date

Modified: 
camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ValueBuilder.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ValueBuilder.java?rev=960448r1=960447r2=960448view=diff
==
--- 
camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ValueBuilder.java 
(original)
+++ 
camel/trunk/camel-core/src/main/java/org/apache/camel/builder/ValueBuilder.java 
Mon