【问题标题】:Start Websphere Application Server but not loading any application启动 Websphere Application Server 但不加载任何应用程序
【发布时间】:2014-08-04 07:43:12
【问题描述】:

有什么方法可以启动 Websphere Application Server 但不加载任何安装在上面的应用程序?

环境:websphere 7.0

【问题讨论】:

    标签: websphere


    【解决方案1】:

    我没有找到用于执行此操作的命令行工具方法,但是您可以编辑每个 WAR/EAR 文件下的 deployment.xml 文件,以便在 Websphere 启动时停止自动启动。

    这些deployment.xml 文件通常位于此处:

    /opt/IBM/WebSphere/AppServer/profiles/<my profile>/config/cells/<my cell>/applications/<my .ear>/deployments/<my app>/deployment.xml
    

    在这个文件中是这个 XML sn-p:

    <targetMappings xmi:id="DeploymentTargetMapping_1499739616851" enable="true" target="ServerTarget_1499739616851"/>
    

    对于您不想自动启动的每个 EAR/WAR,将 enable=true 更改为 enable=false。完成后,像往常一样启动 WAS。

    参考文献

    【讨论】:

      【解决方案2】:

      如果您的意思是不启动已安装的应用程序,这可以通过 Enterprise Applications > your_app > Target specific application status 中的管理控制台进行控制。在那里您可以启用或禁用自动启动。

      Target specific application status

      【讨论】:

      • 我知道目标特定应用程序中的自动启动设置允许我们控制已安装的应用程序是否从服务器启动。但是是否可以通过一些服务器启动命令参数来控制呢?
      猜你喜欢
      • 2012-06-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多