Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9202127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:10:57+00:00 2026-06-17T23:10:57+00:00

I have a need to create a new entry point for a jetty server.

  • 0

I have a need to create a new entry point for a jetty server. This server will create an instance of the jetty container and then in a second thread create a datacollector instance.

My qeustion is how do i set this up so that the servlets running in the container can see the datacollector class?

The purpose behind this is to have a webpage control the state for the datacollector instance. All the datacollector does is goes to a data source (database) and reads the data in a table and loads a file with the contents of the table. I have this setup so that the datacollector will read the table once every 5 minutes. I want to be able to control, from the webpage, all of the attributes of the datacollector instance (example: start, stop, debug mode, ect).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:10:58+00:00Added an answer on June 17, 2026 at 11:10 pm

    Start the DataCollector when the webapp is deployed (using a ServletContextListener), stop it when the webapp is destroyed (using the same listener), and make the DataCollector a singleton or store it in a servlet context attribute to be able to get it from any component of the webapp.

    That said, are you sure you couldn’t simply read from the database table every time you need to send the data to the response? Databases are very fast, especially on small tables.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create a new Changeset entry for a story, given I have
I have a Excel sheet with two columns and I need to create new
I have the following three arrays and need to create a new two-dimensional array
I have a prism application already in production. I need to create a new
i am new in Cassandra db. need help to create data model. i have
I have a need to create a utility in Suze Linux. The utility will
I have a need to create a HttpSession (via cookie) whenever a client invokes
I have a need to create a small pop up information box when a
I have a need to create a wrapper for a DLL, loading and unloading
I have a need to create a library of Object Oriented PHP code that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.