-
1. Re: New MBean causes JBoss to log excessively
cmasson Mar 8, 2002 12:17 PM (in response to cmasson)Some more info:
My MBean does NOTHING in its constructor, nor in init() nor start(). Yet I've noticed output from some MBean methods in the log on startup.
Does JBoss actually trigger ALL public methods on startup? -
2. Re: New MBean causes JBoss to log excessively
adrian.brock Mar 8, 2002 12:24 PM (in response to cmasson)ServiceMBeanSupport implements all methods with
no method bodies.
Regards,
Adrian -
3. Re: New MBean causes JBoss to log excessively
cmasson Mar 11, 2002 6:02 AM (in response to cmasson)The log4j appender for the console is set to a theshold of INFO, yet i'm seeing a lot of 'DEBUG' statements in there - does anyone have an idea how to switch off those debug statements?
-
4. Re: New MBean causes JBoss to log excessively
adrian.brock Mar 11, 2002 6:24 AM (in response to cmasson)Don't cross post, you waste people's time.
Regards,
Adrian -
5. Re: New MBean causes JBoss to log excessively
cmasson Mar 11, 2002 2:48 PM (in response to cmasson)I solved the problem.
I realised that JBoss actually triggers the getter method of all attributes of the MBean at a very early stage of startup (not sure why???). Some of my getter methods lazy initialiazed resources such as TopLink and database connections. That obviously caused an error somewhere which caused JBoss to go into a verbose logging mode.
I have now changed the MBean getters to check whether the Bean has actually been started.