Click to See Complete Forum and Search --> : server pb
Sylvain
March 7th, 2002, 03:39 AM
Hi,
How to use a JSDK or Tomkat servlet server on a IIS win2000 server, and be sure it is running even
if we close the session. That's a bit confusing, when i close the session, the server stop...
How can i avoid this ?
Thank you.
Sylvain.
dlorde
March 7th, 2002, 09:30 AM
You know the server is running because it responds to requests...
Can you explain a bit more clearly?
How do you close the session?
Dave
Sylvain
March 7th, 2002, 09:51 AM
Hi Dave,
I close the session simply by doing "Start/stop/close the administrator session"
In fact, our server is always at the login screen.
I think Tomcat stops because is not set as a service but just launch by a command window.
What do you think of this ?
Am i clear ?
Look at an Oracle DataBase..when it's running you can close the session without stop the base...
Sylvain.
dlorde
March 7th, 2002, 11:39 AM
ISTM that Tomcat should run from a command window until it is explicitly stopped or until the command window is closed. Stopping a session shouldn't stop the server, obviously...
Unfortunately, my experience is with WebLogic, not Tomcat.
Dave
Sylvain
March 7th, 2002, 11:46 AM
Right. That's strange.
Thanks anyway.
Sylvain.
bayard
March 8th, 2002, 12:19 PM
Not sure I understand the problem.
Are you saying you go into DOS, start tomcat, then want tomcat to continue when you close the DOS window?
Make a shortcut to the tomcat bat file, and change it to use javaw instead of java?
Bayard
bayard@generationjava.com
http://www.generationjava.com
Brainbench MVP for Java
http://www.brainbench.com
Sylvain
March 11th, 2002, 02:54 AM
Hi,
Well, i've created some shortcuts to the bat files. When i launch it, there is always a DOS window active.
And when i leave the session, the DOS window is closed...and by the same time Tomcat...?!
If i replace JAVA by JAVAW in the catalina.bat file...it will work ?
Sylvain.
dlorde
March 11th, 2002, 09:00 AM
I think we've been talking at cross purposes... I interpreted your use of 'session' to be an HTTP session (i.e. browser talking to Tomcat). Obviously, when a browser HTTP session is closed, the server should continue running!
I suspect when you talk about 'closing the session', you mean logging off from the server account from which you launched Tomcat? when you do this, you would expect to see the DOS window (that runs in this user session) close, and this will shut down Tomcat.
If this is the case, you need to run Tomcat as a service or as an independent process so that it is not tied to the user session that starts it. Check your server OS documentation for details on running services or independent processes.
If I am way off the mark, sorry to waste your time.
Dave
Sylvain
March 12th, 2002, 07:15 AM
Hi,
Thank you.
Yes, this is what i want to do. Setting Tomcat as a service...but
using Tomcat 4.0.1, JDK 1.3.1 under Win2000 server and IIS,
what is the best way to do this ?
I've seen there is some known bugs....
Sylvain.
dlorde
March 12th, 2002, 07:27 AM
Sorry, I don't know. The server docs should explain how to create services.
Dave
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.