Resin Build/Run/ide support

Source: Internet
Author: User

Brief introduction
Resin is the Caucho company's product, a very popular application server, the servlet and JSP provide good support, performance is also relatively good, resin itself using the Java language development

Resin itself contains a Web server that supports http/1.1, which not only displays dynamic content, but also has a very strong ability to display static content, with the speed of the Apache server, and many sites using
The Web server is built, resin can also work with many other Web servers, resin supports the 2.3 standard and JSP 1.2 standards. Developers who are familiar with ASP and PHP can find that using resin for JSP
Programming is a very easy thing to do. Resin supports load balancing (load balancing) to increase the reliability of your Web site. The following starts with the introduction and use of resin


Resin Installation 4.0

Windows
Need to install JDK1.6 or more versions of the Java environment
Configure Resin_home environment variables such as: F:\Software tools\server tools\resin\resin-4.0.26\resin-4.0.26
Execute Resin.exe file or run Java-jar Lib/resin.jar console
Browse http://loalhost:8080 after configuration.


Installation in Unix,linux and MAC OS X environments
Need to install JDK1.6 or more versions of Java environment
Connect/usr/java to Java home, or define environment variable JAVA_HOME.TAR-VZXF resin-4.0.x.tar.gz (filename)
CD resin-4.0.x
Perform bin/resin.sh or run Java-jar Lib/resin.jar
After the configuration is complete, you can browse http://localhost:8080

Running the application
Once you have determined that resin is working, you can start running the application or adding content, and you can deploy a ". War" file
, deploying this file to the WebApp directory is like: Resin-4.0/webspps/hello.war
URL access is Http://localhost:8080/hello and can be deployed using named rows such as: bin/resin.sh deploy Hello.war

We can use a Web.xml file to configure a Hello Web application
Resin-4.0/webapps/hello/web-inf/web.xml


Run resin as a daemon (background program for sending and receiving mail in the Internet)
In most of the provided environments, resin will run as a background daemon, running resin in front of the foreground, very handy for development when running
As a daemon, resin separates from the console and continues to run. Know Tell it stop

Follow the steps below to run resin as a daemon

Begin resin:bin/resin.sh Start
Stopping resin:bin/resin.sh stop
Start resin:bin/resin.sh Restart again

Resin IDE Support
Resin contains very good support for eclipse, in fact, using Eclipse support may be an easier way to open the resin
Resin plugin Support (Resin plug-in support) is included in the Eclipse3.7 and above versions, and the Resin plugin allows you to create new service instances
Configure the service, start the service, stop the service, restart the instance, deploy/Uninstall the application, debug in the service provider, and you can even use the plugin to automatically download
and install the latest resin version, or apply for an Open License for resin Pro


Migrate to Resin 4.0 platform

Migrate from Resin 3.0 to resin 4.0
Http://wike.caucho.com/Migrating_from_Resin_3.0_to_Resin_4.0 describes the upgrades for these

Migrating from WebLogic to resin 4.0
Http://wiki.caucho.com/Migrating_from_WebLogic_to_Resin describes the transition from WebLogic to Resin.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.