----- Original Message ----- From: "SerFingolfin" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Thursday, September 18, 2008 10:44 AM
Subject: Tomcat as Windows service and output window



Hi to everybody!
I installed Tomcat as service in Windows XP.
In my application i use java.awt.TrayIcon to show an icon in system Traybar. If i start tomcat (as service) without checking "allow service interact with Desktop" i don't see my icon on system traybar. Checking that flag makes my
icon appear and working well, but tomcat's output window also appears...is
there a way to hide it?
Thanks in advance.
--
View this message in context: http://www.nabble.com/Tomcat-as-Windows-service-and-output-window-tp19548553p19548553.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

Interesting....

I think you probably into a little Win32 API....

I vaguely remember ShowWindow(yada blah)...
and there is a way in Win32 to also get the window handle from the window name... I've forgotten..
so thats a little JNI

I dont think its too easy....

Another rather weird way of maybe tackling it... is that Java as a JavaW variation on windows... JavaW starts a java program without a window... so a little messing around with BAT files will let you see if the task bar still works with that... I imagine it does...

Then just leave the service as a service... because it runs without a user.... or dont use a service at all and start TC from the RUN folder in windows.... But then you are going to have to add something to you task bar to let the guy shut it down... a process to shutdown.bat because the use is blind...

Then the service itself in tomacat is a program called Procrun... in fact its just renamed to TomcatW... it doesnt work with java in works with java's dll.... ie its starting the bootstrap classes from C code.... But you can redirect that to any java class you like with the right interface.... so you could start your SuperTaskBarJava.class... it does a JavaW tomcat... or startup bat calling JavaW.... and then if the user closes the services... your SuperTaskBarJava.class will do it...

... Take your pick... I think they all lots of work ;)

Hopefully one idea there works.... have fun ;)

---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to