practical jruby on rails web 2.0 projects bringing ruby on rails to java platform

358 1.3K 0
practical jruby on rails web 2.0 projects bringing ruby on rails to java platform

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

this print for content only—size & color not accurate spine = 0.839" 360 page count EMPOWERING PRODUCTIVITY FOR THE JAVA ™ DEVELOPER Practical JRuby on Rails Web 2.0 Projects: Bringing Ruby on Rails to the Java ™ Platform Dear Reader, The book you’re holding in your hand right now introduces JRuby on Rails in a practical and easy style. The Ruby language and the Rails framework have been making waves in the developer world for a while now. JRuby is the next step in the evolution of Ruby. This book introduces Ruby, Rails, and JRuby; describes how you can use them to create exciting solutions that cross the chasm between the Java™ and Ruby languages; and also shows how you can revolutionize your web development in Java by making use of JRuby on Rails. In my opinion, JRuby is the one technology that is building bridges between the powerful Java platform and a more dynamic programmer experience. This is epitomized by JRuby on Rails, which gives you all kinds of new and important possibilities. Many current Java web frameworks are actively being inspired by the Rails developer experience, but none of them are even close yet. That’s why I wrote this book. I wanted to tell the world that there is a better alternative. I wanted to show in a clear and obvious way how you can make good use of these exciting technologies. I wanted to document JRuby but also provide practical examples that could be immediately applied. That’s why this book employs a project-driven approach. Most of the code introduced is part of one of the four systems that you build during the course of the book. After reading this book, you should be able to start a new project based on JRuby on Rails and take it all the way from inception to production. If you don’t know Ruby, you’ll be able to pick it up from this book. You’ll learn how to use the Rails framework to build web applications—and you’ll also learn how to apply these in a JRuby environment. Ola Bini JRuby Core Developer US $42.99 Shelve in Java Programming/ Development User level: Intermediate–Advanced Bini JRuby on Rails Web 2.0 Projects THE EXPERT’s VOICE ® IN JAVA ™ TECHNOLOGY Practical JRuby on Rails Web 2.0 Projects Bringing Ruby on Rails to the Java ™ Platform CYAN MAGENTA YELLOW BLACK PANTONE 123 C Ola Bini JRuby Project Lead/Core Developer Forewords by Pat Eyler and Martin Fowler, Chief Scientist, ThoughtWorks Companion eBook Available THE APRESS ROADMAP Beginning Rails Beginning POJOs The Definitive Guide to Grails Practical JRuby on Rails Web 2.0 Projects www.apress.com java.apress.com SOURCE CODE ONLINE Companion eBook See last page for details on $10 eBook version ISBN-13: 978-1-59059-881-8 ISBN-10: 1-59059-881-4 9 781590 598818 5 4 2 9 9 Learn and apply the new agile open source JRuby to bring your Ruby on Rails Web 2.0 code and projects into your enterprise Java ™ application stack and more. Practical [...]... good amount of libraries to use, and usually also commercial offerings So, when developing a new application it can be highly useful to do it with JRuby on Rails, but it’s also helpful to be able to fall back and use Java libraries from inside the application for certain functionality JRuby makes it easy to do so There are more reasons to consider JRuby on Rails, and I’ll touch on most of them in several... rubinius and JRuby IRC channels, and so on The discussions between these different development groups have been great to sit in on I think you could even build a case that JRuby has helped spur Microsoft’s IronRuby With JRuby running on the JVM, Ruby is better able to get into some enterprise environments Even at my day job, where I’ve been pushing Ruby from day one, JRuby is making Ruby solutions possible... with the same Rails on a different platform Java I view the JRuby effort to create a fully effective Ruby implementation on the Java JVM to be an important project both for Ruby and Java For Ruby developers, it offers a deployment platform that is well understood, particularly in corporations We’ve already found that doors that were once closed to Rails now open when we start talking about a Java deployment... it won’t be obvious The importance of Java is as a platform, enabling other technologies running on top of it I assume that you know enough about Java already I’ll quickly introduce Ruby, Rails, and JRuby, though, mostly from a historical perspective The descriptions won’t contain any direct language or API information; for that, refer to Appendix A for Ruby and Chapter 3 for Rails Both Ruby and JRuby. .. years to convince my employer to start using Ruby As much as I’d like to attribute that to the growth of my persuasion capabilities, the real reason was much more about the rise of Rails At the time we decided to do a Rails spike, we faced a situation with resource and time limitations and needed to create a fairly simple database-backed web application We finally convinced everyone to do this using Rails, ... functionality of this bean in Ruby Chapter 10: An EJB-Backed Rails Application Most of the BigBrother application is completed by implementing a Rails front end that talks to an Enterprise JavaBean and also uses JMX to manage itself Chapter 11: Deployment The next detour details deployment options for a JRuby on Rails application, how regular Rails deployment usually works, and how to make the situation... with Ruby, but you’ll also have Java available when you need it Let’s get started with a quick introduction to the technologies we’ll cover in this book Background This book focuses on four technologies: Ruby, Rails, JRuby, and Java The point of including Java on this list is that Java is what differentiates JRuby from Ruby In fact, we won’t look at much Java code in this book The presence of Java. .. of this came to pass because JRuby drew Java developers with Tim’s same desire for tools into the Ruby world The JRuby team’s commitment to testing their implementation has been quietly filtering back into the other development teams These days, it’s common to see JRuby developers hanging out on the rubinius IRC channel (#rubinius on freenode), the YARV developers are making appearances on both the... green threads (implemented by the Ruby interpreter and running within the same process) JRuby doesn’t support continuations Continuations are one of those features that are incredibly hard to implement on a system running on a virtual machine, such as Java Another reason for this decision is that it would be impossible to mix Java integration features with continuations If this debate interests you,... would like to thank them here First of all, thanks to Charles O Nutter and Thomas Enebo of the JRuby core team for giving me the chance to contribute to JRuby in the way I’ve done, and for always putting up with last-minute changes I’ve pushed into JRuby to correct information in this book and my insistent ranting on many and varied topics Charles and Tom have also provided muchvalued feedback on ideas . Intermediate–Advanced Bini JRuby on Rails Web 2. 0 Projects THE EXPERT’s VOICE ® IN JAVA ™ TECHNOLOGY Practical JRuby on Rails Web 2. 0 Projects Bringing Ruby on Rails to the Java ™ Platform CYAN MAGENTA . more. Practical

Ngày đăng: 06/07/2014, 15:16

Từ khóa liên quan

Mục lục

  • Practical JRuby on Rails Web 2.0 Projects:

  • Contents at a Glance

  • Contents

  • Foreword by Pat Eyler

  • Foreword by Martin Fowler

  • About the Author

  • About the Technical Reviewer

  • Acknowledgments

  • Introduction

    • Background

      • A Brief History of Ruby

      • A Brief History of Rails

      • A Brief History of JRuby

      • Why JRuby on Rails?

      • Overview of the Book

        • Chapter 1: Introduction

        • Chapter 2: Getting Started

        • Project 1: The Store (Shoplet)

        • Chapter 3: Introduction to Rails

        • Chapter 4: Store Administration

        • Chapter 5: A Database-Driven Shop

        • Project 2: A Content Management System (CoMpoSe)

        • Chapter 6: Java Integration

Tài liệu cùng người dùng

Tài liệu liên quan