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 #70672] Fri, 19 October 2007 11: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:ERROR : export - plugin with aspectj support
Next Topic:Trace across EJB call or RMI
Goto Forum:
  


Current Time: Fri Oct 24 13:34:40 GMT 2014

Powered by FUDForum. Page generated in 0.02338 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software