File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Lost in the forest.  Or, how would you do this? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Lost in the forest.  Or, how would you do this?" Watch "Lost in the forest.  Or, how would you do this?" New topic
Author

Lost in the forest. Or, how would you do this?

Bob Hodges
Greenhorn

Joined: Feb 02, 2007
Posts: 10
To all,

I'm teaching myself web programming with JSF & Facelets and I've become a little lost in how to best design/implement something. Say I have a group of backend services I want to poll and provide health status on via a JSF application. Via the JSF application, the user should be able to input data to define what service(s) to monitor. Note: the polling needs to be continuous even if no one is readin the web page. So, the following questions are driving me nuts and I'd appreciate any thoughts on how you'd do it:

1) Define a single session bean that runs a thread and uses a list within the bean to determine what to poll and then writes the results into collection objects within the bean?

2) Create a servlet invoked at startup which does the polls and is in turn polled by the bean(s) representing each service? For this I have no idea how I'd dynamically create a page that had more than one table/result view backed by different beans

3) Create multiple beans and dynamically build web pages which include multiple service status forms/areas and are pointed to the correct beans for the service.

Any thoughts, books you'd recommend or ideas would be appreciated

Bob
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8439
duplicate post deleted

Note to ranchers, you can delete your own posts if you make a dup by mistake


Eliminate fossil fuel subsidies. (If you're not on the edge, you're taking up too much room.)
 
IntelliJ Java IDE
 
subject: Lost in the forest. Or, how would you do this?
 
Threads others viewed
Calling Servlet method from Bean
Referencing a managed bean object inside another class
Spring (DI and IOC) vs. JSF
Creating a class within JSP to be shared among pages
please answer this 128 questions for WLS. Urgently!
IntelliJ Java IDE