Context and Dependency Injection @Disposes and @Produces
In this example we will use Context and Dependency injection annotations @Produces and @Disposes. We can create an injectable java.sql.Connection using the @Produces annotation. Remember that the container manages the initialisation and destruction of...