permaculture playing cards*
The moose likes Websphere and the fly likes WAS startserver.bat as a Windows scheduled task Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "WAS startserver.bat as a Windows scheduled task" Watch "WAS startserver.bat as a Windows scheduled task" New topic
Author

WAS startserver.bat as a Windows scheduled task

Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 258
Hi
We have been running WAS start/stopserver.bat file as a windows scheduled task (to come up every morning and go down every night). However I just turned on Global Security, which requires to pass the username and password arguments in the command line.
However doing this in the scheduled task leaves the password as plain text, which is obviously not an option. How do I do this in a more secure way.

How do you guys automatically start and stop your server.

TIA
Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 258
I have resolved the issue thanks.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Could you tell us how? There may be the occasional other Websphere user who doesn't just run their server as a Windows service and who bumps into this question.
Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 258
Sorry, I was going to come back later in the evening to post my solution. But here it is:

I modified the soap.client.props file located in \Appserver\properties

IBM Source

and then used the PropFilePasswordEncoder script in \Appserver\bin to encode the property file
IBM Source

p.s. We are not running this as a Windows Service because we are tied to certain other operations that we perform before bringing up the server.
 
jQuery in Action, 2nd edition
 
subject: WAS startserver.bat as a Windows scheduled task