Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

what is the beast way for loggoing in ejb3 application?  RSS feed

 
tarek helmy
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the beast way for loggoing in ejb3 application?
taken into consideration performance
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will have to provide more details on what you are looking for. That's a very vague question.
 
Manuel Alberto Quero
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Since you shouldn't use I/O operations inside EJB methods, you should avoid using solutions like log4j inside EJB methods.

One approach could be use interceptors to log information before and after EJB method execution. You can get information about what happened inside the method from InvocationContext _ctx (Object executionResult = _ctx.proceed();).

Hope this helps,

Manuel
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!