File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Tracking Log with EJB3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Tracking Log with EJB3" Watch "Tracking Log with EJB3" New topic

Tracking Log with EJB3

Elton Kuzniewski
Ranch Hand

Joined: Dec 06, 2007
Posts: 44
Hi there!

I'm developing a business core for an application with EJB3.
My EJB3 Services can and do calls for others EJB3 Services in same JVM.

I'm with a little problem to solve a requesite where my business layer needs make a Tracking Log.

What is it?
My First EJB3 Service will receive a idSession, and I need use this idSession at every log event that my business layer will do.

Thus, I need that this idSession remain at some place that every EJB3 service can access it. But this idSession will be diferent for every new request.

Anyone has an idea? How I can resolve this?!

Thank's a lot!

Elton Kuzniewski<br>SCJA 1.0, SCJP 5.0, SCWCD 5.0, SCBCD 5.0, SCJD (B&S - working on project),
<br><a href="" target="_blank" rel="nofollow"></a>
giuseppe fanuzzi
Ranch Hand

Joined: Sep 18, 2006
Posts: 99
maybe a statefull session bean could help you.
it could wrap the idSession and act as a facade for all the session

I agree. Here's the link:
subject: Tracking Log with EJB3
It's not a secret anymore!