Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scala/Lift Framework runs just over jetty web server?

Tags:

scala

lift

jetty

I am new with Lift and want to know if it is developed to just run with Jetty but no other web server. Any idea?

like image 390
javier Avatar asked May 07 '10 22:05

javier


2 Answers

Lift works great with Jetty when you are developing, but you can certainly run it on other servlet containers. Tomcat seems to be a popular choice.

From wikipedia: Lift applications are packaged as WAR files and deployed on any Servlet 2.4 engine (e.g., Tomcat 5.5.xx, Jetty 6.0, etc.)

Here is a tutorial explaining how to run Lift on Glassfish v3

like image 190
dbyrne Avatar answered Oct 18 '22 04:10

dbyrne


Lift is primarily deployed under Jetty because Jetty is the only container (that I know of) which is supported by Lift 1.0's continuations integration mechanism. Without a container which supports continuations, Lift's Comet support is unoptimized and every single client (literally!) will hold at least one thread. Obviously this doesn't scale.

AFAIK, Lift 2.0 has gone to the standard Servlet continuations API, so it supports more containers, but I believe that Lift 1.0 is generally coupled to Jetty for high-performance Comet.

like image 29
Daniel Spiewak Avatar answered Oct 18 '22 05:10

Daniel Spiewak