1. Micha Kops
  2. camel-scala-dsl-tutorial

Commits

Micha Kops  committed 320ce12 Draft

Java artifacts removed.

  • Participants
  • Parent commits 263e853
  • Branches default

Comments (0)

Files changed (1)

File src/main/scala/com/hascode/tutorial/RecipientBean.scala

View file
 
   @RecipientList def getRecipients(@Header("CamelFileName") fileName: String): Array[String] = {
     println("detecting recipients for given filename: " + fileName)
-    if (fileName.endsWith("csv")) {
-      return Array("jms:csvQueue")
-    }
-    return Array("jms:defaultQueue")
+    if (fileName.endsWith("csv"))
+      Array("jms:csvQueue")
+    Array("jms:defaultQueue")
   }
 }