This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tracking Log with EJB3

 
Elton Kuzniewski
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
giuseppe fanuzzi
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
maybe a statefull session bean could help you.
it could wrap the idSession and act as a facade for all the session
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic