• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to log within EJB?

 
Siegfried Heintze
Ranch Hand
Posts: 408
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone point me to a simple example of logging within an EJB? I'm using openejb.

When I run "mvn test" I see lots of logging. Is there a way for EJB log entries to appear mixed in with the client side log entries that appear when I run the unit tests? That would be nice. If not, how would I observe the log output?

I was reading http://openejb.apache.org/logging.html. Would I have to modify the openejb.base/conf/logging.properties file?

Is the procedure observing server side ejb log entries any different for JBOSS?

Thanks,
Siegfried
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since the EJB itself is part of your application you can use whatever logging your app uses to log in the EJB.

If you are asking how to see EJB related logs that the container is purging, the answer to that really depends on how JBOSS goes about logging internal messages
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic