Websphere 使用Jython脚本更新web sphere MQ队列目标
如何使用JYTHON脚本更新WebSphere MQ队列目标 目前我们使用的WebSphere Application Server版本为“5” 详情是 名称=ABC JNDI Name=jms/ABC 基本队列名称=X.Y.Z需要像X.p.Q一样进行更改Websphere 使用Jython脚本更新web sphere MQ队列目标,websphere,jython,ibm-mq,Websphere,Jython,Ibm Mq,如何使用JYTHON脚本更新WebSphere MQ队列目标 目前我们使用的WebSphere Application Server版本为“5” 详情是 名称=ABC JNDI Name=jms/ABC 基本队列名称=X.Y.Z需要像X.p.Q一样进行更改 请提供Jython脚本的任何示例详细信息或与此相关的任何参考链接?首先,我认为IBM在WebSphere 5.1版之前不会引入Jython。如果您正在运行5.0,则需要使用JACL 我无法访问5.1版WebSphere安装,因此无法验证我的答
请提供Jython脚本的任何示例详细信息或与此相关的任何参考链接?首先,我认为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上试过了。首先,我认为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试过了