Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Trace across EJB call or RMI
Trace across EJB call or RMI [message #596428] Fri, 19 October 2007 07:24
Eclipse User
Originally posted by: jan.bols.contractor.thomson.com

Hi, I need to trace calls on both the client and the server in an EJB 2.1
project. I'm logging any method execution of the BD (business delegate) on
the client, any method execution of the EJB on the server and any method
execution of the DAO calling the database. This is all trivial.

However, I need to trace the calls from the BD all the way up to the DAO
so my logs show something like this when executing MyBD.doSomething()
twice:
- ref 1234 - BD: MyBD.doSomethingCallingTheEJB()
- ref 1234 - EJB: MyManagerEJB.doSomethingCallingTheDAO()
- ref 1234 - DAO: MyDAO.doSomething()
- ref 5678 - BD: MyBD.doSomethingCallingTheEJB()
- ref 5678 - EJB: MyManagerEJB.doSomethingCallingTheDAO()
- ref 5678 - DAO: MyDAO.doSomething()

Is it possible to pass a reference of the BD call to the EJB and DAO
levels using AspectJ?

I tried the wormhole pattern or percflow association but this doesn't work
as there is no connection to the BD calling the EJB because MyManagerEJB
is a SessionBean while the BD calls MyManager extending the EJBObject.
There's no connection between MyManager and MyManagerEJB.

The client and server are on different VM's.
Previous Topic:Trace across EJB call or RMI
Next Topic:Windows AJDT Install Problem
Goto Forum:
  


Current Time: Wed Apr 16 09:27:14 EDT 2014

Powered by FUDForum. Page generated in 0.04946 seconds