W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 2003

question about the stop of Jigsaw

From: Martin Laurent <laurent.martin@siemens.com>
Date: Thu, 17 Jul 2003 15:22:22 +0200
Message-ID: <43AEC967F027D311B9960008C791E80E09968807@sx1131.l200.vdogrp.de>
To: www-jigsaw@w3.org

Hi everybody,
I have an application which create an instance of Jigsaw server.
When I make a shutdown of this Jigsaw server (version 2.1.1), whithout stop my aplication, I have these following traces on the screen
	loading properties from: C:\Data\Jigsaw\Jigsaw\config\server.props
	*** Warning : JigAdmin[2.1.1]: no logger specified, not logging.
	JigAdmin[2.1.1]: serving at
	Jigsaw[2.1.1]: serving at
	admin-server: done.
	http-server: done.

The 2 last lines appeares after a few seconds. I think that Jigsaw need some seconds to stop correctly all her ressources
but I'm not sure.

My problem is the following : I want stop my application only after these 2 last lines (if they means the fact that the Jigsaw
server is correctly stopped) but I don't know how to intercet these messages. Do you know how to do this?
I have try like this
		int compt;//nb of ServerHandler
			compt = _serveurHTTP.getServerHandler().getSizeHandlers();
			System.out.println("compt : " + compt);
		} while ( compt != 0 );
		this.processWindowEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));

"_serveurHTTP" is my instance of the Jigsaw server.
When I do this the problem is that just after the first line the variable compt is already equals to 0
so it go out the do/while and it close the window BEFORE print these traces
	admin-server: done.
	http-server: done.

Perhaps I uts use a more recent version of Jigsaw...
If someone can help me I am taking of all the explanations.

	Laurent Martin
Received on Thursday, 17 July 2003 09:22:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:38 UTC