To support CDI of the DAO implementation
I need to make changes to the WorldDAO project
1) I need to add these to the WorldDAO pom.xml file
javax.inject
javax.inject
1
javax
javaee-api
8.0
provided
2) I need to annotate the DAO Implemenatation to make it known to CDI
import javax.enterprise.inject.Model;
import javax.inject.Named;
@Named("CityService")
@Model
public class CityDAOImpl implements CityDAO
3) I then need to rebuild the DAO project
Run As.. -> Maven Install