Chapter 9. Open Source and Proprietary Tools

In this chapter, we will cover some open source and proprietary tools. The following are the recipes that we will go through in this chapter:

  • Developing using spring-data-mongodb
  • Accessing MongoDB using JPA
  • Accessing MongoDB over REST
  • Installing a GUI-based client, MongoVUE, for MongoDB

Introduction

There is a vast array of tools/frameworks available to ease the development/administration process for software that uses MongoDB. We will look at some of these available frameworks and tools. For a developer's productivity (Java developers, in this case), we will look at spring-data-mongodb, which is a part of the popular spring data suite.

JPA is an ORM specification that is widely used, particularly with relational databases. (This was the objective of the ORM frameworks.) However, there are a few implementations that let us use it with NoSQL stores—MongoDB, in this case. We will look at a provider who provides this implementation and put it to the test with a simple use case.

We will use spring-data-rest to expose the CRUD repositories for MongoDB over a REST interface for clients to invoke various operations supported by the underlying spring-data-mongo repository.

Querying the database in the shell is okay, but it would be nice to have a good GUI to enable us to do all the administrative-related/development-related tasks from the GUI rather than execute the commands in the shell to perform these activities. We will look at one such tool in this chapter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset