【发布时间】:2019-08-19 01:45:02
【问题描述】:
我正在尝试侦听远程 Wildfly 服务器上的 JMS 队列。我已成功连接到遥控器以向同一用户发送消息,但是当我设置 MessageDrivenBean 时出现错误。
@MessageDriven(name = "MessageListenerBean", activationConfig = {
@ActivationConfigProperty(propertyName = "user", propertyValue = "username"),
@ActivationConfigProperty(propertyName = "password", propertyValue = "p@ssw0rd!"),
@ActivationConfigProperty(propertyName = "useJNDI", propertyValue = "false"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "/queue/receive"),
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
@ActivationConfigProperty(propertyName="connectionParameters", propertyValue = "host=localhost;port=8080")})
public class MessageListenerBean implements MessageListener {
错误是
AMQ222216: Security problem while creating session:
AMQ119031: Unable to validate user from invm:0.
Username: username; SSL certificate subject DN: unavailable
我假设我的配置不正确,但如何?
【问题讨论】: