JMS客户端工具-HermesJMS for Java 8的替代品吗? [英] JMS client tool - any alternative to HermesJMS for Java 8?

查看:234
本文介绍了JMS客户端工具-HermesJMS for Java 8的替代品吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


有哪些HermesJMS替代品?我需要针对JBoss WildFly 8进行测试,并且它使用Java8.HermesJms似乎是为Java 6构建的,我无法为其找到完整的Java 8端口.我尝试使用此配置选项设置hermes.bat,但我得到了以下错误:


What alternatives to HermesJMS are available? I need to test against JBoss WildFly 8 and it uses Java 8. HermesJms seems to be built for Java 6 and I could not find a full Java 8 port for it. I tried setting hermes.bat with this configuration option but I get the following error:

org.xml.sax.SAXNotRecognizedException: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized.

这似乎是由于Xerces JAR版本引起的,但我担心%HERMES_HOME%\ lib \ ext下的所有其他库是否也会有类似的Java 8兼容性问题.最好的方法是使用HermesJMS的Java 8兼容版本,而不是尝试一个接一个地修复JAR,但是鉴于没有这样的分支,这似乎是不可能的.

This seems to be due to Xerces JAR version but I am worried if all other libs under %HERMES_HOME%\lib\ext will have similar Java 8 compatibility issues. Best way is to use a Java 8 compatible build of HermesJMS rather than try fixing JARs one by one but that seems not possible given that there is no such branch.

谢谢,
稻米

Thanks,
Paddy

推荐答案

要使其在Java 8中正常运行,您需要添加以下参数:

To let it work for Java 8 correctly, you need to add the following parameters:

-Dorg.xml.sax.parser=com.sun.org.apache.xerces.internal.parsers.SAXParser -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl

Windows
打开bin/hermes.bat,并在start "HermesJMS" "%JAVA_HOME%\bin\javaw"之后添加这些参数.

Windows
Open bin/hermes.bat and add those parameters after start "HermesJMS" "%JAVA_HOME%\bin\javaw".

Linux/Mac
打开bin/hermes.sh,并在"$JAVACMD"之后的最后一行中添加这些参数.

Linux / Mac
Open bin/hermes.sh and add those parameters in the last line after "$JAVACMD".

这篇关于JMS客户端工具-HermesJMS for Java 8的替代品吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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