Skip to content
Sandbox for exploring JRuby integration with a legacy Spring app
Java Ruby JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.settings Initial commit
app Add search owners scenario
config New task 'cucumber:spring' to start Tomcat and run Cucumber
db Add a fresh, empty Rails 3 application with no ORM
doc Add a fresh, empty Rails 3 application with no ORM
features New task 'cucumber:spring' to start Tomcat and run Cucumber
lib New task 'cucumber:spring' to start Tomcat and run Cucumber
public Starting port of Spring MVC petclinic to Rails
script Added cucumber rails and some smoke test features
spec Added basic rspec install
src Add search owners scenario
test
vendor/plugins Add a fresh, empty Rails 3 application with no ORM
.classpath Initial commit
.gitignore Add configuration to allow Warbler to package the Rails+Spring app
.project Initial commit
.rspec Added basic rspec install
.springBeans Initial commit
Gemfile Upgrade to launchy 1.0.0 (temporarily from git) so that we can use sa…
Gemfile.lock Upgrade to celerity 0.8.9
README.md Updated to remove mention of the unnecessary maven_classpath step
Rakefile Add a fresh, empty Rails 3 application with no ORM
config.ru Add a fresh, empty Rails 3 application with no ORM
petclinic-readme.txt Add a fresh, empty Rails 3 application with no ORM
petclinic.iml Initial commit
pom.xml Switch to classpath.rb as generated from new classpath mojo in jruby-…

README.md

Rails 3 + Spring Petclinic

This project showcases how you might use Rails 3 along with Spring+Hibernate and existing Java sources from the Spring Petclinic application.

Getting started

First create the database

$ mysql -u root
> create database petclinic;

Then build the legacy petstore and download all Java dependencies using maven

$ mvn package

Starting the server

$ rails server

Integration tests with cucumber

There are some basic smoke tests in the features folder. Run them with

$ rake cucumber
Something went wrong with that request. Please try again.