• 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
Sheriff
Posts: 36031
432
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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!