【问题标题】:Update web sphere MQ Queue Destinations using Jython script使用 Jython 脚本更新 Web Sphere MQ 队列目标
【发布时间】:2011-02-16 06:04:38
【问题描述】:

如何使用 JYTHON 脚本更新 WebSphere MQ 队列目标?

目前我们使用的 WebSphere Application Server 版本是‘5’

细节是……

姓名= ABC JNDI 名称= jms/ABC

Base Queue Name= X.Y.Z 需要像 X.P.Q 一样更改

请提供任何示例 Jython 脚本详细信息或任何与此相关的参考链接?

【问题讨论】:

    标签: websphere jython ibm-mq


    【解决方案1】:

    首先,我认为 IBM 直到 WebSphere 5.1 版才引入 Jython。如果您运行的是 5.0,则需要使用 JACL。

    我无权访问 5.1 版 WebSphere 安装,因此无法验证我的答案。在您自己的安装中查找 AdminTask.modifyWMQQueue。从 7.0 版安装中摘录的 wsadmin 输出:

    wsadmin>print AdminTask.help('modifyWMQQueue')
    WASX8006I: Detailed help for command: modifyWMQQueue
    
    Description: Modifies the properties of the WMQ Queue provided to the command.
    
    *Target object: The WMQ Queue object to modify.
    
    Arguments:
      ccsid - The coded character set identifier.
      ...
      qmgr - The queue manager on which the WMQ queue resides.
      queueName - The name of the WebSphere MQ queue that will be used to store 
                  messages for the WMQ JMS queue type destination definition.
      ...
    

    请注意。过去,我们使用 Jython 来操作数据源只是为了发现仍然需要回收 JVM。我不能说我们已经用 MQ 尝试过。

    【讨论】:

      猜你喜欢
      • 2020-09-10
      • 2022-10-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-15
      • 1970-01-01
      • 2012-07-16
      相关资源
      最近更新 更多