Skip to content
Browse files

akka

  • Loading branch information...
1 parent 51aefba commit 2749e62a3a77480f398dde182074d48d859b03ae Gregg committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/main/g8/src/main/scala/$servlet_name$.scala
View
3 src/main/g8/src/main/scala/$servlet_name$.scala
@@ -6,6 +6,9 @@ import java.util.concurrent.Executors
class $servlet_name$ extends ScalatraServlet {
+ implicit val ec =
+ ExecutionContext.fromExecutorService(Executors.newCachedThreadPool())
+
//setup Casbah connection
val mongo = MongoConnection("$mongodb_host$",$mongodb_port$)("$mongodb_db$")("$mongodb_collection$")

0 comments on commit 2749e62

Please sign in to comment.
Something went wrong with that request. Please try again.