如何使用wsadmin在JMSProvider的类路径中获取换行符 [英] How to get newlines in classpath for JMSProvider using wsadmin

查看:99
本文介绍了如何使用wsadmin在JMSProvider的类路径中获取换行符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个带有自定义类路径的JMSProvider对象.这是我在jython中的操作方式:

I want to create a JMSProvider object with a custom classpath. Here's how I'm doing it in jython:

... classpath ="a.jar:b.jar:c.jar" .replace(:","\ n") 属性= [ ['name',name], ['description',description], ['classpath',classpath], ['externalInitialContextFactory',externalInitialContextFactory], ['externalProviderURL',externalProviderURL], ['nativepath',[]], ['supportsASF','true'] ] AdminConfig.create('JMSProvider',节点,属性) AdminConfig.save()

... classpath = "a.jar:b.jar:c.jar".replace(":", "\n") properties = [ ['name', name], ['description', description], ['classpath', classpath], ['externalInitialContextFactory', externalInitialContextFactory], ['externalProviderURL', externalProviderURL], ['nativepath',[]], ['supportsASF','true'] ] AdminConfig.create('JMSProvider', node, properties) AdminConfig.save()

JMSProvider已创建,但classpath变量的换行符已转义:

The JMSProvider is created, but the classpath variable has the newlines escaped:

a.jar\nb.jar\nc.jar

如何告诉wsadmin不要转义换行符?

How can I tell wsadmin to not escape the newlines?

推荐答案

WAS管理控制台(网页)要求您使用换行符输入类路径,而wsadmin工具要求其与主机操作系统分开.文件分隔符.因此根本不需要修改输入字符串.

Whilst the WAS admin console (the web page) requires you to enter the classpath with newlines, the wsadmin tool requires that it be separated by the host O/S file separator. So there is no need to modify the input string at all.

classpath = "a.jar;b.jar;c.jar"

可以正常工作.

这篇关于如何使用wsadmin在JMSProvider的类路径中获取换行符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆