how to make a bean application scoped so that it will persist as long as the web application is running???
and how can we access it in our controller??
thank you
cool_zephyr
7
Junior Poster in Training
Recommended Answers
Jump to Post@ManagedBean @ApplicationScope public class YourClass ... In Servlet: getServletContext().getAttribute("yourClass") In JSF: #{yourClass.whatever}
All 3 Replies
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
cool_zephyr
7
Junior Poster in Training
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.