Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating the dictionary app from command line

Status
Not open for further replies.

achikh

Programmer
Dec 12, 2011
1
US
I was looking for a way to update the DictionaryApp that comes with WebSphere and trying to update if from command line, so that I don't have to go thru the admin console every time.

I cannot figure out a way to specify the JNDI is "jdbc/DictionaryDB" which is a mandatory field.

I am calling a batch file that has the following command: "C:\Program Files\IBM\WebSphere\AppServer\bin\wsadmin" -lang jython -user admin -password admin -f "c:\pkg\update.py"

The content of the update.py file is where I am struggling with: I so far have: (but not sure how to include the fact that it needs another paramter: '-JNDIName' which = 'jdbc/DictionaryDB'

$AdminApp list
$AdminApp install DictionaryApp
$AdminConfig save
set appMgr [$AdminControl queryNames type=ApplicationManager,*]
$AdminControl invoke $appMgr startApplication DictionaryApp


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top