将Ruby on Rails项目转换为JRuby on Rails项目 [英] Convert a Ruby on Rails project to a JRuby on Rails project

查看:112
本文介绍了将Ruby on Rails项目转换为JRuby on Rails项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有什么特别的方法可以将Ruby on Rails项目转换为JRuby on Rails项目?
现在需要让Rails端通过RMI与Jav​​a服务器通信,因此想知道如何进行转换。谢谢。

is there any particular way to convert a Ruby on Rails project to a JRuby on Rails project? There now is a need to get the Rails side to talk to a Java server via RMI so was wondering how to make the conversion. Thanks.

推荐答案

正如@Karl所说,它几乎有用但你应该注意一些警告:

As @Karl says, it pretty much works but there are a number of caveats you should be aware of:


  • 数据库适配器将与您可能习惯的不同。它们基于 JDBC 。例如,MySQL适配器安装描述这里

  • 您通常会在生产中部署到Java应用程序服务器,例如 Glassfish Tomcat 码头。通常使用 Warbler

  • 使用原生扩展程序的某些宝石可能行不通。有关所需内容的详细信息,请参见此处

  • The database adapters will be different from the ones you may be used to. They're based on JDBC. For example, the MySQL adapter install is described here
  • You will generally deploy to Java application servers in production such as Glassfish, Tomcat or Jetty. Typically this is done using Warbler
  • Certain gems with native extensions may not work. See here for details on the what is required

这篇关于将Ruby on Rails项目转换为JRuby on Rails项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆