Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB Container contract related to Exception handling and logging according to the specification 1.6

 
Isuru Samaraweera
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Does the container provides automatic logging of all exceptions and errors generated by EJB code?

As far as I understood j2ee container is responsible of providing automatic log trace for the errors originating from EJB code as per the j2ee1.6 specification?


Or


Developer must have to provide the logs and nothing is mentioned about logging in the specification?


Thanks,
Isuru
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If an EJB throws an exception (that it does not handle), the container will log the stack trace.
 
Isuru Samaraweera
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne,
Thanks for the reply.

Regards,
Isuru
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic