SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 169 | Next

Ola Bini

"Practical JRuby on Rails Web 2.0 Projects: Bringing Ruby on Rails to Java"


From the next chapter on, we??™ll work with much more Java code, and there will also be
a high amount of JRuby-specific code. The next chapter will describe JRuby in more detail,
describing how to accomplish all the usual tasks you??™ll need when integrating Java with Ruby.
We??™ll also start on a completely new project that makes much more use of this integration.
That means there won??™t be much place for things you??™ve learned in the last few chapters, so
some of the code will be omitted, and some just described in prose instead of code. The full
code is available online, though, in the Source Code/Download area of the Apress web site
(http://www.apress.com).
CHAPTER 5 ?–  A DATABASE-DRIVEN SHOP 95
A Content Management
System (CoMpoSe)
P R O J E C T 2
Java Integration
The last few chapters mainly served to introduce Ruby and Rails, and only incidentally used
JRuby to achieve this. From now on much more Java will be involved. That doesn??™t necessarily
mean that you need to write and build Java classes, but you??™ll interact with the Java ecosystem
in different ways that aren??™t possible with regular Ruby.
To make this transition easier on you, this chapter will be a detour into these issues. It will
be a focused chapter; I won??™t talk about the next project application at all. This is the crash
course about the areas where JRuby differs from Ruby.
I??™ll begin by describing how you can reference Java classes, Java primitives, and Java
arrays, and what you can do with them from JRuby.


Pages:
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181