Hi Ole,
http://cvs.apache.org/viewcvs.cgi/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/BlockContext.java
class YourBlock
{
contextualize( Context c ) { m_context = context; }
somewhere() { ((BlockContext)m_context).requestShutdown(); }
}
note the contract associated with requestShutdown.
cheers,
- Leo
Ole Bulbuk wrote:
Hi,
I would like to be able to shut down a Phoenix server application via CORBA.
So I called stop() and dispose() of the main block (which in turn does the
same on its children). But it doesn't work.
The only way I can shut it down is with a ^C in the console window.
I tried it once via JMX but didn't get it working within a few days and that
solution would have brought us 2 additional technologies (JMX and RMI) that
we don't really need or want.
So my question is:
How can I shutdown my Application (or even the whole Phoenix since my
application is and will always be the only one) from within a block of the
application itself?
How can an application say that it would like to die?
Hope you can help,
Ole
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]