How to create stand-alone lift web application?

谁说胖子不能爱 提交于 2019-12-12 08:09:48

问题


How to make a standalone lift application? Which tools/libraries to use? How does the performance compare to using lift application as a war in some application server?


回答1:


With onejar maven plugin http://onejar-maven-plugin.googlecode.com/svn/mavensite/usage.html and maven I could package jetty and project with dependencies inside one jar.




回答2:


The part of the question on performance doesn't really fit with the rest. You are primarily asking how to package the Lift application as a single JAR/WAR. This doesn't have anything to do with the runtime.

At runtime you will still be running inside a Servlet container (could be Jetty, Tomcat or a full-blown Java EE server). How you package your application won't affect the performance.

You could take a look at Hudson (a great Continuous Integration Server) to see how they deliver as a single WAR file that contains an embedded Servlet container. You can download the WAR file and run it from the command line: java -jar hudson.war




回答3:


I know this is an old question, but...

If you are using sbt, I wrote a plugin to produce 'executable' wars like those mentioned above.

https://github.com/glenford/sbt-jetty-embed



来源:https://stackoverflow.com/questions/1363401/how-to-create-stand-alone-lift-web-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!