Вопрос

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

Это было полезно?

Решение

You can add/replace files with "AdminApp update file". Here's the doc for AdminApp:

http://pic.dhe.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.nd.doc/info/ae/ae/rxml_adminapp.html

.. and its options:

http://pic.dhe.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.nd.doc/info/ae/ae/rxml_taskoptions.html

And here's the example:

AdminApp.update('TheAppName', 'file', ['-operation', 'add', '-contents', '/path/to/your/local/file', '-contenturi', 'path/within/the_app'])
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top