This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I am trying a simple servlet based on Jetty 8. In the main class where i create the server instance and add the servlet i want to fill and add a bean with configuration data which is read and stored in the bean at startup.
The bean is added using the addBean method of context.
Is it possible to access the bean from within the servlet ? I can get the ServletContext but have not found any clue how to retrieve the bean added to the context from within the servlet.