Micha Kops avatar Micha Kops committed 16c6e88 Draft

Typos fixed.

Comments (0)

Files changed (3)

src/main/scala/com/hascode/tutorial/AnnotatedBeanExample.scala

 object AnnotatedBeanExample extends App {
   val context: CamelContext = new DefaultCamelContext
   val connectionFactory: ConnectionFactory = new ActiveMQConnectionFactory("vm://localhost")
-  context.addComponent("jms", JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
+  context.addComponent("jms", JmsComponent.jmsComponentAutoAcknowledge(connectionFactory))
 
   val routeBuilder = new RouteBuilder {
     from("file:data/inbox").bean(classOf[RecipientsBean])

src/main/scala/com/hascode/tutorial/ExampleWithMessagingUsingActiveMQ.scala

 object ExampleWithMessagingUsingActiveMQ extends App with RouteBuilderSupport {
   val context: CamelContext = new DefaultCamelContext
   val connectionFactory: ConnectionFactory = new ActiveMQConnectionFactory("vm://localhost")
-  context.addComponent("jms", JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
+  context.addComponent("jms", JmsComponent.jmsComponentAutoAcknowledge(connectionFactory))
   val routeBuilder = new RouteBuilder {
     from("file:data/inbox")
       .choice {

src/main/scala/com/hascode/tutorial/ImapExample.scala

 object ImapExample extends App {
   val mailServer = new GreenMail(ServerSetupTest.IMAP)
   mailServer.start
-  val user = mailServer.setUser("test@hascode.com", "joe", "XXXX");
+  val user = mailServer.setUser("test@hascode.com", "joe", "XXXX")
 
   val context: CamelContext = new DefaultCamelContext
   val routeBuilder = new RouteBuilder {
-    from("imap://joe@0.0.0.0:3143?password=XXXX") --> ("file:data/outbox");
+    from("imap://joe@0.0.0.0:3143?password=XXXX") --> ("file:data/outbox")
   }
   context.addRoutes(routeBuilder)
   context.start
   Thread.sleep(3000)
   for (i <- 0 until 3) {
-    var message = new MimeMessage(null: Session);
-    message.setFrom(new InternetAddress("test@hascode.com"));
+    var message = new MimeMessage(null: Session)
+    message.setFrom(new InternetAddress("test@hascode.com"))
     message.addRecipient(Message.RecipientType.TO, new InternetAddress(
-      "foo@hascode.com"));
-    message.setSubject("Test E-Mail #" + i);
-    message.setText("This is a fine test e-mail. It is the " + i + " message of 3.");
+      "foo@hascode.com"))
+    message.setSubject("Test E-Mail #" + i)
+    message.setText("This is a fine test e-mail. It is the " + i + " message of 3.")
     println("sending new email: #" + i)
-    user.deliver(message);
+    user.deliver(message)
     Thread.sleep(2000)
   }
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.