start/startService is poor's man AOP :-)

On Mar 19, 2004, at 3:01 AM, Adrian Brock wrote:

On Fri, 2004-03-19 at 01:43, Bela Ban wrote:
Hey Adrian,

what are you doing ? You're breaking our code by changing start() to
startService() !

No I am not. All the cache tests still work for me.


start() invokes startService().
start() was never intended to be overriden, in fact doing so
in the way you had it breaks the state machine
of ServiceMBeanSupport

What I have actually done is change start() to go via
the service controller so when you click start()/stop()
on the jmx console it also starts/stops dependent services.

start() -> serviceController -> startService()
                                    \--> startService() on dependents

before my modification it was
start() -> startService()
which meant dependents didn't start

Regards,
Adrian

--
xxxxxxxxxxxxxxxxxxxxxxxx
Adrian Brock
Director of Support
Back Office
JBoss Inc.
xxxxxxxxxxxxxxxxxxxxxxxx



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development




------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to