• Post Reply Bookmark Topic Watch Topic
  • New Topic

Startng WAS as a W2000 service  RSS feed

 
Steve McCain
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone tell me how to start WAS v4 (Advanced
Single Server Edition) as a W2000 service?
I think v3.5 was automatically installed as a
service but v4 is not.
thanks
Steve McCain
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WAS AEs does not start as a service. What you were starting as a service in 3.5 was the admin server -- in WAS 4.0 AEs the admin service runs inside the application server itself, not as a separate process (my workbook describes this in detail -- I really suggest you look at it). WAS 4.0 AE (the multiserver version) does have a separate admin server that can be started as a service.
Kyle
 
Steve McCain
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can start the app server interactively via
the startServer script or via the First Steps
utility but it dies when I log-off. The question I should have asked is how do I start it so it keeps running after I log-out? This seems like a pretty basic requirement to me!
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't. WAS is running as an application and not a service -- applications shut down when you log off (think about Microsoft Word!)
Kyle
 
Steve McCain
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kyle,
your comparison with Word is fatuous.
Are you really telling me that the Websphere Application Server can only be run on W2000 as a 'foreground' task so that if you want to run it 24 hours a day then you have to leave the machine with the user who starts WAS logged in? Not what I'd call a secure solution.
Is there a particular reason why WAS can't be started as a service, after all this is the normal way of running servers (eg IBM HTTP Server, SQL Server etc)?
What about running it on Solaris - can it be run as background task?
Steve McCain
University of Bradford
 
Steve McCain
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm really interested in how other people handle this. Can anyone advise? Please!
 
Allan Sumabat
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AFAIK, you need the advanced edition to start it as a service.
 
Steve McCain
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply but according to the infocentre for AES, section 6.6a, you can start the app server as a service. Pity it doesn't tell you how to create the service!
I created a script using startServer -script.
I tweaked it a bit to stop it echoing a few REMs. Then I created a service (using instsrv) to call the script. It works except WAS takes more than 30 seconds to start so I get a Windows error & the service is not shown as started even though it does start OK. I'm not sure how to tweak W2000
to give it more time to start.
Perhaps I should just log a call with IBM Tech Support - we pay for it after all!
 
Mike Jones
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kyle,Steve,
I'm interested in the question Steve raised about running AEs as a service. The following is from the Infocenter, and seems to suggest you can run it as a service under NT, which I would assume impies W2K also. ???
http://www.webspherepro.com/Images/WSArchiveImages/2001/WAS4Tutorial/Fig6.gif
Mike
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, there is no way to start AEs as an NT Service. Now, in Linux or any other Unix, you can certainly start it as a background task.
You might find something different out from IBM Customer Service (I've been surprised before) but I doubt it.
Now, having said that, there are a few different commercial and shareware tools that claim that they can take any Windows batch file or EXE file and make it into a Service -- you might look into those...
Kyle
 
Mike Jones
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kyle,
From InfoCenter:
"Starting and stopping servers as services from the Windows NT Services window
You can use the Services window of your Windows NT or 2000 operating system to start and stop the IBM WebSphere Application Server service. Note, you can also use the command line options or Servers page of the administrative console to stop a server that you started as a service."
http://www-4.ibm.com/software/webservers/appserv/doc/v40/aes/infocenter/index.html

If your comment is correct, doesn't the Infocenter documentation need to be corrected.
I appreciate the input.
Mike
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!