Forums Register Login

How to log within EJB?

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1020 times.
Similar Threads
error logging within EJB
Logging ?
Servlet action is not available
Modular Java: servlet container
Java cookies ?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 01:53:54.