• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to log within EJB?

 
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic