Skip to main content

Configuring Databases for a JRuby Web Application

  • Chapter
  • First Online:
  • 1000 Accesses

Part of the book series: SpringerBriefs in Computer Science ((BRIEFSCOMPUTER))

Abstract

Configuring databases implies configuring database parameters in a configuration file (database.yml) so that the JRuby on Rails application may access a database. For Oracle™ database, to use ActiveRecord JDBC configure the activerecord-jdbc-adapter adapter in the database.yml. For Oracle database, configure Oracle Database in two environment modes: development and production. The Oracle™ WebLogic Server, even when started in development mode, requires the production database to be configured in database.yml. For running rake tasks such as db:migrate and db:create the development database is required. At the least the url and driver parameters are required to configured. For MySQL™ database configure the activerecord-jdbcmysql-adapter adapter. The parameters for MySQL database are different than for Oracle database.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Deepak Vohra .

Rights and permissions

Reprints and permissions

Copyright information

© 2014 The Author(s)

About this chapter

Cite this chapter

Vohra, D. (2014). Configuring Databases for a JRuby Web Application. In: JRuby Rails Web Application Development. SpringerBriefs in Computer Science. Springer, Cham. https://doi.org/10.1007/978-3-319-03934-3_5

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-03934-3_5

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-03933-6

  • Online ISBN: 978-3-319-03934-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics