Consolidate rails and Java EE in GlassFish v3

Source: Internet
Author: User
Tags glassfish

Integration of rails and Java EE

The following is an introduction to the integration of rails and Java EE on the GlassFish v3. GlassFish V3 is the next version of GlassFish V2, focusing on modularity and making it possible to run containers and modules that are not Java EE.

Here is a detailed description of the details:

1. Using JRuby 1.1 (Install rails), follow the steps below to create a rails application "railsee3":

~/testbed/jruby-1.1/samples/rails. /.. /bin/jruby-s Rails Railsee3


Create App/controllers

Create App/helpers

Create App/models

. . .

Create Log/production.log

Create Log/development.log

Create Log/test.log

2. Add servlet description (servlet descriptors)

1. Create a new Folder "Web-inf", create a new file under this folder "Web.xml"

<! DOCTYPE Web-app Public

"-//sun Microsystems, INC.//DTD Web application 2.3//en"

"Http://" >




<servlet-class>server. Helloservlet</servlet-class>







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: 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.