Simple 10-minute overviews of various Resin topics are available below:
-
Resin Deployment
– basic application deployment on Resin
-
Resin Debugging
– useful debugging tools for Resin deployments
-
Resin on Amazon EC2
– get setup on Amazon EC2 in minutes
-
Resin Security
– 4 ways to secure your deployment
Installing Resin
- Download Resin Pro
-
Install Resin and compile native I/O extensions for faster-than-Nginx™ performance:
- Windows XP/Vista/7/8: bundled with precompiled binaries
- deb64 and rpm64 downloads: bundled with precompiled binaries
- tar.gz downloads
./configure make make install
- Browse the web admin at: http://localhost:8080/resin-admin/
- Deploy your webapps:
- Unix, Linux, Solaris, and Mac OS X
resinctl deploy mywebapp.war
- Unix, Linux, Solaris, and Mac OS X
- Browse your webapp at: http://localhost:8080/mywebapp
Documentation for configuring every aspect Resin to your needs
Embedding Resin
package example; import com.caucho.resin.*; public class TestResin { public static void main(String []args) { ResinEmbed resin = new ResinEmbed(); HttpEmbed http = new HttpEmbed(8080); resin.addPort(http); WebAppEmbed webApp = new WebAppEmbed("/", "/var/www/htdocs"); resin.addWebApp(webApp); resin.start(); resin.join(); } }