JCDI Beans WebApp Sample

This example demonstrates how to develop RESTful web service with JCDI managed beans and an EE 6 compliant Web container.

Running the Example

If you are working with Jersey GlassFish update center module installed into your existing GlassFish instance, you will need to follow instructions at the module README file in order to deploy the example.

From a web browser, visit:

http://localhost:8080/jcdi-beans-webapp/ejb/stateless
http://localhost:8080/jcdi-beans-webapp/jcdibean/per-request
http://localhost:8080/jcdi-beans-webapp/jcdibean/singleton
http://localhost:8080/jcdi-beans-webapp/jcdibean/dependent/per-request
http://localhost:8080/jcdi-beans-webapp/jcdibean/dependent/singleton