As of today, GlassFish V3 supports four types of applications each served by a particular container :
This page will describe all the steps necessary to install these containers prior to start deploying artifacts to them. In a future build, we will most likely install these containers as the deployment request is made but this is not implemented yet so for now, you have to do it manually.
The web container is bundled with the GlassFish v3 installation so there is nothing that needs to be done to run servlets and jsp. We have not tried yet JSF.
First you need to download the JRuby latest release from http://jruby.codehaus.org/
and install it either in the glassfish's installation lib directory under the jruby directory or install it anywhere and have jruby.home property in
After that you just need to download and deploy a RoR application, you should not have to modify the RoR application except for the database connectivity. Existing RoR apps use native drivers to access the database, however when running in Java this is not the best option so you usally need to modify the RoR application to change that. Let's review this taking mephisto as an example :
development:
adapter: jdbc
driver: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/mephisto
username: dochez
password: noway
if RUBY_PLATFORM =~ /java/ require 'rubygems' RAILS_CONNECTION_ADAPTERS = %w(jdbc) end
asadmin deploy --path mephisto
Same as above, just install the binaries in
PHP installation is a bit more complicated mostly because the Resin Quercus engine is not available in a public maven reposistory. So you need to follow these steps :
and install it in cp WEB-INF/lib/resin-util.jar <glassfish>/lib/jars/resin-util-3.1.jar cp WEB-INF/lib/quercus.jar <glassfish>/lib/jars/quercus-3.1.jar cp index.php <glassfish>/domains/domain1/docroot
Warning : the PHP integration in GlassFish V3 is not complete and you will probably run into issues. We need to upgrade to Grizzly 1.5 and resolve a few other issues before this will be fully functional.