jQuery in Action, 3rd edition
The moose likes EJB and other Java EE Technologies and the fly likes How to log within EJB? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to log within EJB?" Watch "How to log within EJB?" New topic

How to log within EJB?

Siegfried Heintze
Ranch Hand

Joined: Aug 11, 2000
Posts: 397
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?

Deepak Bala

Joined: Feb 24, 2006
Posts: 6662

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

SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
I agree. Here's the link: http://aspose.com/file-tools
subject: How to log within EJB?
It's not a secret anymore!