Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Sep 16th, 2012  |  syntax: None  |  size: 1.66 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ---
  2. title: Documentation
  3. layout: default
  4. toc: true
  5. ---
  6.  
  7. #{page.table_of_contents}
  8.  
  9. # Introduction
  10.  
  11. Escalante is an application server for [Scala](http://scalan-lang.org),
  12. based on the popular [JBoss Application Server 7](http://www.jboss.org/as7).
  13.  
  14. To find out how to install Escalante, or how to start it up, please check
  15. Escalante's installtion guide. The rest of the documentation focuses on how to
  16. take advantage of what Escalante provides for Scala application developers.
  17.  
  18. # Escalante for Lift Web Applications
  19.  
  20. In the current version, Escalante allows you to deploy
  21. [Lift web applications](http://liftweb.net/) in a way that optimises the size
  22. of the deployment and the memory consumption at runtime, both of which are of
  23. paramount importance. Escalante does however still allow you to deploy
  24. standard Lift applications. Let's look at the differences between these two
  25. deployment modes:
  26.  
  27. ## Optimising Lift applications for Escalante
  28.  
  29. Lift applications targeted for deployment in Escalante do not require any Lift
  30. dependencies to be shipped within the application, and that includes the Scala
  31. lang libraries too. This vastly reduces the size of your application deployment
  32. archive.
  33.  
  34. To give you an idea, the most basic of the Lift examples, the war file for the
  35. 'Hello World' example, takes in the region of 30 MB. Without all the jar
  36. dependencies, the war file takes a mere 8 KB.
  37.  
  38. So, the question is, how does Escalante know, at deploy time, which
  39. dependencies your Lift application needs? Escalante figures out which
  40. dependencies your applications needs reading a `WEB-INF/lift.xml` file within
  41. your deployment archive. Here's an example:
  42.  
  43.     <lift-app version="2.4" scala-version="2.9.2" />