【问题标题】:wsadmin upload file to warwsadmin 上传文件到war
【发布时间】:2012-10-04 13:22:13
【问题描述】:

是否可以使用 wsadmin (jacl/jython) 将文件上传到 webapp 模块? (fe app.war/custom/uploadedfile.txt)? 我将 wsadmin 用作独立设备,并希望在应用程序启动之前执行一些安装后步骤。

websphere 7

谢谢

【问题讨论】:

    标签: upload websphere websphere-7 wsadmin


    【解决方案1】:

    您可以使用“AdminApp 更新文件”添加/替换文件。这是 AdminApp 的文档:

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

    .. 及其选项:

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

    下面是例子:

    AdminApp.update('TheAppName', 'file', ['-operation', 'add', '-contents', '/path/to/your/local/file', '-contenturi', 'path/within/the_app'])
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-18
    • 1970-01-01
    • 2016-06-20
    • 1970-01-01
    • 2016-04-04
    相关资源
    最近更新 更多