Chapter 12. Building an article-delivery engine
This chapter covers
- Building an article repository
- Enabling web upload and article display
- Using a MongoDB database
Among the tasks a content-management system (CMS) must support are the authoring, editing, and deploying of content by nontechnical users. Examples include articles (news, reviews, and so on), announcements, press releases, product descriptions, and course materials.
In this chapter, you’ll create an article-delivery engine following three recipes.
- Recipe 12.1 builds an article repository using Jackrabbit, Java Content Repository (JCR), and Spring Modules JCR.
- Recipe 12.2 builds a web front end to upload and display the articles.
- Recipe 12.3 replaces the JCR repository with a MongoDB-based implementation using Spring Data MongoDB.
Figure 12.1 is the roadmap in graphical form. It shows how the various pieces fit together architecturally.
Although it’s not strictly required, to get the best value from this chapter you’ll find it helpful to have experience with JCR, Jackrabbit, and MongoDB. If those are new areas for you, be prepared to do some self-study because we won’t be covering them in detail. But we do provide sample code—be sure to make use of it, especially as regards the nontrivial Maven setup. The following resources are also available: