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 7938283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:45:56+00:00 2026-06-03T22:45:56+00:00

I will be creating a ServletFilter that will alter the way HTTP Requests are

  • 0

I will be creating a ServletFilter that will alter the way HTTP Requests are processed.

The ServletFilter will make those decisions based on the state of the data in the database.

I would rather not have a database hit happen every time the ServletFilter is invoked.

The webapp already has quartz implemented, so hitting the database at a predetermined time is not a problem.

My question is, how can I contact the ServeltFilter at these timed intervals to give it a new set of saved information until the next timed interval?


Update:
There is useful discussion in this SOF post about getting a ServletContext into a Quartz job.
How to get and set a global object in Java servlet context

  • 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-03T22:45:58+00:00Added an answer on June 3, 2026 at 10:45 pm

    Instead of trying to find the Filter to tell it,
    have the Filter look the information up by querying a service somewhere (e.g. stored in the ServletContext), or just have the service store the information in the ServletContext.

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

Sidebar

Related Questions

I will be creating flatfiles and based on the data in the batch, it
I'm creating a report that will take some data from one database (Company and
I'm creating an application that will store geolocation data for specific transactions. Should I
I'm creating and app that will rely on a database, and I have all
I am creating a multilingual site that will need to support at minimum five
I am creating an application that will have a list of items that can
I am creating a database that will help keep track of which employees have
I am on a project where I will be creating a Web service that
Using a very large raw binary data file, I will be creating a large
I will be creating a project that will use dictionary lookups and inserts quite

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.