Install JBoss AS and the JBoss Rails Deployer
First, make sure you have JBoss AS and the JBoss Rails Deployer installed, according to their instructions.
Install the plugin
Next, follow the directions to install the plugin into your application.
Install the JDBC gems
Once installed, the plugin itself can read your config/database.yml and install the appropriate database gems.
rake jboss:rails:jdbc:install
Deploy your application
The rake task to deploy your application operates even if AS is not currently running. It creates a deployment descriptor under the 'all' configuration of the server installed at $JBOSS_HOME.
rake jboss:rails:deploy
By default, the application will be deployed to the root context, at http://localhost:8080/.
Changes to controllers, views, and routes will immediately be reflected in the running application. Changes to some config/*.rb files, installation of new gems or plugins, and changes to classes in your application's lib/ directory require a redeployment.
To redeploy, use the command
rake jboss:rails:deploy-force
This will cause it to re-emit the deployment descriptor, which in turn will cause AS to redeploy the application.
Control JBoss AS
To start the AS at $JBOSS_HOME using the all configuration, open a new terminal window and use this command:
rake jboss:as:run
To stop the server, simply press Control-C.


