Hmmm... > > > And now another question. How can I shutdown phoenix from within a > > block? > > Not possible (but read on). >
But we need it in order to provide clean and flexible management. > > How do I get the embeddor instance I need to shutdown? > > Check out the ApplicationListener. This provides access to > SarMetaData and related BlockInfo structures. You can do > some level of playing around here but only at the block and > application level. Basically, you only have access to the > block or application context so your application cannot > interfere in another applications space. > > There is some JMX management stuff that I honestly don't know > much about (don't even know if its working or not). In > principal it would provide > management access to Phoenix. Personally I would like to see > a pluggable controller so I can do things like remote CORBA > based start-up/shutdown. Umm, Pete .. we spoke about > something like this a couple of months back. > Maybe its time to put it in place ? > > Cheers, Steve. > Why don't extend the attempt made by the manager's release method? I think it is a kind of reference counted self destruction of blocks, isn't it? And thats all we need. When all blocks in a manager are disposed it could notify the embeddor (or whatever else), which shutdowns itself. So you could shutdown your app simply by calling dispose on your apps top level component (clean), or by disposing the component manager (dirty ;). -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
