anonymous wrote : private static Logger logger;
|
|
| public MasterSessionBean() {
|
| logger = logger.getLogger("org.apache");
|
| log("SessionMaster()");
| }
Even if you ignored that warning and deployed this bean, i would expect a
NullpointerException at logger.getLogger, since the logger object is never
instantiated. The right way to do this (and also get rid of the warning) is:
| private static Logger logger =
Logger.getLogger(MasterSessionBean.class.getName());
|
|
| public MasterSessionBean() {
|
| log("SessionMaster()");
| }
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107234#4107234
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107234
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user