博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
JRuby-Rack
阅读量:6349 次
发布时间:2019-06-22

本文共 1118 字,大约阅读时间需要 3 分钟。

JRuby-Rack

JRuby-Rack is a lightweight adapter for the Java servlet environment

that allows any Rack-based application to run unmodified in a Java
servlet container. JRuby-Rack supports Rails, Merb, as well as any
Rack-compatible Ruby web framework.

For more information on Rack, visit .

Getting Started

The easiest way to use JRuby-Rack is to get . Warbler

depends on the latest version of JRuby-Rack and ensures it gets placed in
your WAR file when it gets built.

If you're assembling your own WAR using other means, you can install the

jruby-rack gem. It provides a method to locate the jruby-rack jar file:

require 'fileutils'require 'jruby-rack'FileUtils.cp JRubyJars.jruby_rack_jar_path, '.'

Otherwise you'll need to download the , drop

it into the WEB-INF/lib directory and configure the RackFilter in your
application's web.xml. Example web.xml snippets are as follows.

For Rails

Here's sample web.xml configuration for Rails. Note the environment

and min/max runtime parameters. For multi-threaded Rails with a single
runtime, set min/max both to 1. Otherwise, define the size of the
runtime pool as you wish.

转载地址:http://eopla.baihongyu.com/

你可能感兴趣的文章
通过AOP自定义注解实现日志管理
查看>>
UEFI+GPT双硬盘安装Win10+Ubuntu16.04双系统
查看>>
<c:if>条件判断 和 取值做乘法运算
查看>>
vdbench-自动化测试脚本
查看>>
javascript中arguments,callee,caller
查看>>
js下判断 iframe 是否加载完成的完美方法
查看>>
开发技巧-Java通过HttpProxy实现穿越
查看>>
protect golang source code
查看>>
设计模式之—代理模式
查看>>
Git Tutorial 7 - File States
查看>>
ti-link双路由器间的无线链接
查看>>
Excel生成报表之解决方案---簇状圆锥图
查看>>
算法导论-动态规划-装配线调度
查看>>
IBM Intel 微软
查看>>
使用C++11原子量实现自旋锁
查看>>
Python学习笔记:使用request库遇到的问题
查看>>
地表破裂
查看>>
图片切换效果
查看>>
ASP.NET的WebFrom组件LinkButton使用
查看>>
Qt工程转换成VS工程
查看>>