SingletonBeanTest
This example uses a facelet UI (xhtml) to display 2 different counters:
- One counter is incremented every time a user request the page (this counter is managed by a Singleton Bean);
- The other counter is incremented every time a new client accesses the page (this counter uses a Managed Bean with a session scope);
Technologies used:
- JSF Facelets UI;
- A Managed Bean;
- A Singleton Bean (a type of session bean);
Download example (Netbeans project)
Sem comentários:
Enviar um comentário