Java Platform, Enterprise Edition (Java EE) 8 The Java EE Tutorial

## 26 Running the Basic Contexts and Dependency Injection Examples

This chapter describes in detail how to build and run simple examples that use CDI.

The following topics are addressed here:

- Building and Running the CDI Samples

- The simplegreeting CDI Example

- The guessnumber-cdi CDI Example

Copyright © 2017, Oracle and/or its affiliates. All rights reserved.