[Last Call] Learn how to a build a cloud-first strategyRegister Now


which methods  executed in servlet ,sessionbean,DAO and their class names

Posted on 2004-11-09
Medium Priority
Last Modified: 2013-11-24
lets say

in my application i have one jsp

that jsp is calling servlet --> ejb --->dao

say i am executing one long scenario in the application

while going to these process  servlet will execute some methods,
 session bean  will execute some methods and same in the case of DAO finally we will the desired result;

In this process i want to know which methods(i wanted to know method names)  it has executed in servlet ,sessionbean,DAO and their class names;

Question by:chaitu chaitu
  • 3
  • 2
LVL 13

Expert Comment

ID: 12531973

try this:
LVL 35

Expert Comment

ID: 12531982
LVL 20

Author Comment

by:chaitu chaitu
ID: 12532020
hi petmagdy

in API This dumpStack() METHOD is used only for debugging;

where should i put this method;

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

LVL 13

Expert Comment

ID: 12532043
try to put it at the end of your servlet service and inside ur DAO call
LVL 35

Accepted Solution

girionis earned 500 total points
ID: 12532072
I do not think there is a standard way to do it. There is an undocument package sun.reflect.Reflection that gets the calling class but that's more or less it. You will need to throw an exception and find out where it is being thrown (what methods) and follow up the stack trace tree.

I think this is the closest you can get to it: http://java.sun.com/developer/JDCTechTips/2003/tt0318.html#2
LVL 35

Expert Comment

ID: 12673311

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month18 days, 3 hours left to enroll

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question