[jboss-dev-forums] [Design of EJB 3.0] - Re: Logging JNDI names of beans at INFO level

ALRubinger do-not-reply at jboss.com
Mon Sep 29 03:47:58 EDT 2008


Agreed, and I've been thinking about this for a bit too.

One feature enhancement I'd been punting around my head was for the JNDI Registrar to keep track of all bindings that were done, then output them in one legible logging message like:

INFO [org.jboss.ejb3.proxy.jndiregistrar.JndiSessionRegistrarBase] 
  | 
  |    EJB "MySessionEJB" has bindings in Global JNDI at:
  | 
  |    MyEAR/MySessionEJB/local (Implements A, B, C) [Business Local]
  |    MyEAR/MySessionEJB/remote (Implements X, Y, Z) [Business Remote]
  |    MyEAR/MySessionEJB/home (Implements Q) [EJB 2.x Remote Home]

i.e. One centralized logging statement with some spacing to make it stand out.

Overkill or helpful?  Comments appreciated.  Might be worthwhile asking for input on the user forum as well.

S,
ALR



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179276#4179276

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179276



More information about the jboss-dev-forums mailing list