Java Reference
In-Depth Information
via an Ajax call using the prototype JavaScript library. I'll show the code for that later. In
the meantime I want to highlight the Groovy parts of this application.
The application is simple but it has a fair number of moving parts, so I'll build it in stages.
The first task is to collect the geographic information for the individual MLB stadiums and
save it in a database, as illustrated in figure 2.5 .
Figure 2.5. Building Groovy Baseball, part 1 —geocoding stadium data and saving in DB
In this part of the process, I'll cover
• Plain Old Groovy Objects
• Accessing a RESTful web service
• The groovy.sql.Sql class
The next step is to access the online box scores and parse the resulting XML files, illus-
trated in figure 2.6 .
Figure 2.6. Building Groovy Baseball, part 2 —extracting box score data and creating output POGOs
During this stage, I'll discuss
• Reading from a database
• Downloading information over the internet
• Parsing XML
 
 
Search WWH ::




Custom Search