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

  • Home
  • SEARCH
  • 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 8692089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:15:01+00:00 2026-06-13T00:15:01+00:00

I have designed an application with RestEasy. I have used PreProcessInterceptor basically to intercept

  • 0

I have designed an application with RestEasy.
I have used PreProcessInterceptor basically to intercept all the requests and validate the user from databse.
Once the validation is successfull, the requests go to the corresponding service api’s.
So my question is it right approach having an PreProcessInterceptor interceptor in which it interacts with database to validate user in one transaction and again calls the service api’s which in turn there will be one or more different database transaction for the business purpose.
So ideally there will be atleast 2 database hits for every request with 2 different transaction.

  • 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-13T00:15:02+00:00Added an answer on June 13, 2026 at 12:15 am

    If your application has few users, sure go ahead. But since you’re asking I guess that’s not the case.

    I wouldn’t recommend you to design the application the way you propose. I would advise you to use a proper security framework such as apache shiro. Shiro comes with good caching features right out of the box.

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

Sidebar

Related Questions

I have designed an application that requires no install and can be used by
I have designed a standalone application using swings which can read data from HID
All - I have designed a web application on CakePHP and hosting on a
I have designed a database for an application which contains user settings. This database
I have designed a web service application and fetch app's data from my server
I have an application designed for iPhone OS 2.0 and I am adding some
I have an application designed for iPhone OS 2.x. At some point I have
I have my application designed with Repository pattern implemented and my code prepared for
My question is this: I have an application designed for iPhone and I decided
I am planning to build a database for a school application. I have designed

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.