Announcement Announcement Module
Collapse
No announcement yet.
logging start appplication Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • logging start appplication

    hi, I am logging aapplication, but I would like to log when aplication does a connection to database, how can I get it?

    I log all aplication with <aopointcut>.

  • #2
    Hi,


    If you want to applying logging to the database calls,the apply the pointcut on database package with the help of expression tag.



    kartik

    Comment


    • #3
      maybe I didn't explain correctly before, Actually in our enterprise we work only with struts, and in our web projects configuration we have a servlet that loads on init() , in this servlet we have all parameters with Db connection and others, and then this paramaters are passed with propertyes.

      with this configuration we get a log that writtes:

      begin application....
      conecction database correct.....

      so, I would like to log something similar when application starts.
      Last edited by duardito; Feb 3rd, 2010, 06:44 AM.

      Comment


      • #4
        Hi,

        If you want to have something to do when application starts ,then init() place is the only place where you can do it.Apart from that you need to mention <load-on-startup>0</load-start-up> for that servlet in your web.xml.This will lazily load the servlet on application start up and not when it receives its first request.

        kartik

        Comment

        Working...
        X