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 startserver.bat as a Windows scheduled task

 
Pranav Sharma
Ranch Hand
Posts: 258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have resolved the issue thanks.
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic