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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:33:49+00:00 2026-05-25T01:33:49+00:00

I have an application in whioch I want certain operation logs to be put

  • 0

I have an application in whioch I want certain operation logs to be put in entities.
MLore clearly, my application will provide a set of tasks, and I want these tasks to be able to write logs, later visible by users in web UI.

To my mind, the easier way to achieve that is to have tasks write their log in associated entities, stored in DB. Am I right ? and, if so, how to do that ? Create a log handler that writes in a String/Blob ?

EDIT Notice that, in some cases, my tasks will be run in Glassfish client, and not in server, which makes direct JDBC writing to DB irrelevant.

  • 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-05-25T01:33:49+00:00Added an answer on May 25, 2026 at 1:33 am

    If these tasks are writing logs using something like Log4j, you can transparently redirect these logs to your database using the Log4j JDBC Appender (see here how). If you use another Logging engine, I suppose it has something similar to this.

    Afterwards, you just have to map that table with an entity, and do regular queries through JPA (log4j would write on that table in raw SQL, but that should not be a problem for your case).

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

Sidebar

Related Questions

I have developed the application in which i want to set the background color
I have an application developed in netbeans and I want to set the focus
I have an application implemented and I want to sell certain items in it.
I have an application in which I want to authenticate a user from a
We have created an application which we want to run in a 64 bit
I have a server application which I want to protect from being stopped by
I have an iPhone application which in which I want to perform a method
I have an application in which there is a form which I want to
I have written an application in which I want to convert a .jpg image
I have a scientific application for which I want to input initial values at

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.