我正在使用 jmeter jms 点对点队列进行负载测试。
但是我收到以下错误: javax.naming.NamingException:无法创建远程连接[根异常是java.lang.RuntimeException:javax.security.sasl.SaslException:身份验证失败:所有可用的身份验证机制均失败]
我使用的是jmeter 2.11版本
我在 jndi 属性中添加用户名和密码。但它仍然不起作用。这是我正在使用的配置:
QueueConnectionFactory:RemoteConnectionFactory
初始上下文工厂:org.jboss.naming.remote.client.InitialContextFactory
网址:远程://localhost:4447
JNDI 属性: 用户名: .............. 密码:…………
最佳答案
您的 Jndi 属性似乎错误,请检查:
登录/密码 Prop 是:
- java.naming.security.principal
The identity of the principal for authenticating the caller to the service. For more information, see the Java API documentation for javax.naming.Context.SECURITY_PRINCIPAL.
- java.naming.security.credentials
The credentials of the principal for authenticating the caller to the service. For more information, see the Java API documentation for javax.naming.Context.SECURITY_CREDENTIALS.
关于jms - 使用 JMeter jms 点对点队列在 Jmeter 负载测试中添加授权,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23382040/