Works now. Thanks
-----Original Message----- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 5:30 AM To: [email protected] Subject: Re: RegistryShutdownListener You have to use an <event-listener> element in within your BuilderFactory <construct> parameter. The service-id should be hivemind.ShutdownCoordinator. On Thu, 26 Aug 2004 23:24:24 -0400, Hensley, Richard <[EMAIL PROTECTED]> wrote: > I have a service that implements the RegistryShutdownListener, however I > don't see evidence in the debugger that the registryDidShutdown() method is > getting called. I do see the setController() dependency injector getting > called. I'm sure I missed something, but I'm not sure what. > > here is the hivemodule.xml snip > > <service-point > id="ControllerShutdown" > interface="com.mckesson.lab.adept.ControllerShutdown"> > <invoke-factory> > <construct > class="com.mckesson.lab.adept.ControllerShutdownImpl"> > <set-service > property="controller" > service-id="com.mckesson.adept.Controller" /> > </construct> > </invoke-factory> > </service-point> > > <contribution > configuration-id="hivemind.EagerLoad"> > <load > service-id="ControllerShutdown" /> > </contribution> > > And here is the class > > public class ControllerShutdownImpl > implements > ControllerShutdown, > RegistryShutdownListener { > private Controller controller; > public void registryDidShutdown() { > System.out.println("Controller Shutdown " + controller.toString()); > this.controller.shutdown(); > } > public void setController(Controller controller) { > this.controller = controller; > } > } > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Jakarta Tapestry Creator, Jakarta HiveMind http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
