-
Feb 3rd, 2010, 04:25 AM
#1
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 <aop
ointcut>.
-
Feb 3rd, 2010, 04:35 AM
#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
-
Feb 3rd, 2010, 05:37 AM
#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 at 05:44 AM.
-
Feb 3rd, 2010, 07:10 AM
#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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules