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

Posted on 2004-11-09
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
    LVL 13

    Expert Comment


    try this:
    LVL 35

    Expert Comment

    LVL 20

    Author Comment

    by:chaitu chaitu
    hi petmagdy

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

    where should i put this method;

    LVL 13

    Expert Comment

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

    Accepted Solution

    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:
    LVL 35

    Expert Comment


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    fix34  challenge 9 70
    nested interface 5 29
    Increment alphanumeric sequence 6 57
    wordcount challenge 11 48
    For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
    Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now