Reputation: 4942
is it possible to upload file using wsadmin (jacl/jython) to webapp module? (fe app.war/custom/uploadedfile.txt)? I'm using wsadmin as standalone and want to do some postinstall step before start of application.
websphere 7
thank you
Upvotes: 0
Views: 855
Reputation: 2940
You can add/replace files with "AdminApp update file". Here's the doc for AdminApp:
.. and its options:
And here's the example:
AdminApp.update('TheAppName', 'file', ['-operation', 'add', '-contents', '/path/to/your/local/file', '-contenturi', 'path/within/the_app'])
Upvotes: 2