Results 1 to 4 of 4

Thread: logging start appplication

  1. #1

    Default 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. #2

    Default

    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

  3. #3

    Default

    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 at 05:44 AM.

  4. #4

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •