This example demonstrates how to develop RESTful web service with JCDI managed beans and an EE 6 compliant Web container.
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.
Otherwise, you can run the example using embedded GlassFish as follows:
Build and deploy the project by executing maven 2 from the project directory
mvn clean package embedded-glassfish:run
Note: You need at least JDK 1.6 to be able to start embedded Glassfish V3.
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