Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WAS Scripting

 
Chad Emerson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have an application that has to be restarted on a daily basis. The developer is working on fixing a memory leak issue, has been for weeks now...
What I would like to do is write a job that would run daily to restart the app every night. Does anyone have any experience,tips, or examples that could get me going in the right direction? I am running WAS 5.1.x on Windows 2k3.

Thanks!
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The job should do this: Go to your websphere/appserver/bin directory and runwhere restart.scr is in that same directory and containsYou can schedule this to run daily using the Windows "Scheduled Tasks" application.
[ January 23, 2006: Message edited by: Paul Clapham ]
 
Chad Emerson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. Do you run this from the deployment manager? What about checking to see if the application has actually stopped before you try starting it? Is there any good site that have examples that you know of?

Thanks again for the help.
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I run it from the command line.

If you want to know more about command-line administration and scripting, that's Chapter 16 of the System Management and Configuration redbook (SG24-6195-01).

(I haven't got very deeply into that, I just have a single script that installs a new version of an application. What I posted is part of that.)
 
Julio Rios
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this using Jacl? Someone please explain? This is exactly wht i need.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic