[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [equinox-dev] Question about not execute BundleActivator.stop method
|
But if equinox can publish exit event,then I can simply do what I want
to do when application exit,just like now equinox publish start event.
2006/8/9, Neil Bartlett <neil@xxxxxxxxxxxxxx>:
On the one hand, one could argue that if you want to do something on
exit then you should exit in the proper way by typing "close" instead
of "exit".
On the other hand, I know that some people like to terminate server
processes by simply hitting Ctrl-C in the console. Perhaps a shutdown
hook could be written so that Ctrl-C produces the same effect as
"close". However I'm sure that such a shutdown hook could be supplied
in an ordinary bundle, it wouldn't need to be incorporated directly
into Equinox.
Regards
Neil
On 8/9/06, jerry lin <bluedavy@xxxxxxxxx> wrote:
> But I want to do something when application exit,so I want to listen
> Application Exit Event.
> I think Equinox should support this to ensure the stop method of the
> bundles in the application based on equinox can be executed when
> application exit,just like Tomcat.
>
> 2006/8/9, Roy Paterson <rpatersn@xxxxxxxxxx>:
> > I think "exit" in the console is the same as System.exit(). Try the
> > "close" command instead.
> >
> > -----------------------------------------
> > Roy Paterson
> > IBM Pervasive Computing
> > Austin, TX
> > Phone: (512) 838-8898
> >
> >
> >
> >
> > "jerry lin"
> > <bluedavy@gmail.c
> > om> To
> > Sent by: "Equinox development mailing list"
> > equinox-dev-bounc <equinox-dev@xxxxxxxxxxx>
> > es@xxxxxxxxxxx cc
> >
> > Subject
> > 08/09/2006 09:36 [equinox-dev] Question about not
> > AM execute BundleActivator.stop method
> >
> >
> > Please respond to
> > Equinox
> > development
> > mailing list
> > <equinox-dev@ecli
> > pse.org>
> >
> >
> >
> >
> >
> >
> > hi,everyboy!
> >
> > I start my application based on equinox in eclipse,if I enter
> > "exit" in console to exit application,the stop method of bundles in
> > this application not execute,why? is a bug or ?
> > Do I need to listen FrameworkEvent to hook the exit event of the
> > application,but in FrameworkEvent Stop Event not supported,what method
> > can I use to realize this?
> >
> > --
> > =============================
> > | MSN: BlueDavy@xxxxxxxxxxx |
> > =============================
> > _______________________________________________
> > equinox-dev mailing list
> > equinox-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/equinox-dev
> >
> >
> > _______________________________________________
> > equinox-dev mailing list
> > equinox-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/equinox-dev
> >
>
>
> --
> =============================
> | www.blogjava.net/bluedavy |
> =============================
> _______________________________________________
> equinox-dev mailing list
> equinox-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>
--
Neil Bartlett
Senior Technical Consultant, Integility Ltd
Tel: +44 (0) 20 7043 8328
Fax: +44 (0) 20 7043 8329
LinkedIn Profile: https://www.linkedin.com/in/neilbartlett
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev
--
=============================
| MSN: BlueDavy@xxxxxxxxxxx |
=============================