JBoss 7(EAP 6)CLI配置:在支持的属性中找不到'queue-address':[选择器,条目,持久的]

时间:2018-07-27 10:22:09

标签: jboss jboss7.x hornetq jboss-eap-6 jms-queue

我正在使用JBoss EAP 6,我的任务是将服务器迁移到云端。

我让JBoss启动,但是随后某些队列失败:

     [echo] try to connect to local JBoss...
Checking for listener at 127.0.0.1:17545
Checking for listener at 127.0.0.1:17545
waitfor: condition was met
Property "jboss.not.started" has not been set
     [echo] ...connection is available.
  [antcall] Exiting /app/project/app/jboss-6.4-inst1/pi-deploy/tools/extension/configure.xml.
     [echo] env.JBOSS_HOME=/opt/inet/jboss-6.4
     [java] Executing '/opt/dbsinfra/zst/jdk-1.8.0_161/jre/bin/java' with arguments:
     [java] '-jar'
     [java] '/opt/inet/jboss-6.4/jboss-modules.jar'
     [java] '-mp'
     [java] '/opt/inet/jboss-6.4/modules'
     [java] 'org.jboss.as.cli'
     [java] '--file=/app/project/app/jboss-6.4-inst1/pi-deploy/../bin/configure.cli'
     [java]
     [java] The ' characters around the executable and arguments are
     [java] not part of the command.
     [java] INFO  [org.jboss.modules] JBoss Modules version 1.3.10.Final-redhat-1
     [java] INFO  [org.xnio] XNIO Version 3.0.16.GA-redhat-1
     [java] INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.16.GA-redhat-1
     [java] INFO  [org.jboss.remoting] JBoss Remoting version 3.3.12.Final-redhat-2
     [java] INFO  [org.jboss.as.cli.CommandContext] The batch executed successfully
     [java] The batch executed successfully
     [java] ERROR [org.jboss.as.cli.CommandContext] 'queue-address' is not found among the supported properties: [selector, entries, durable]
     [java] 'queue-address' is not found among the supported properties: [selector, entries, durable]

您可以看到通过命令行界面(CLI)配置了服务器:

     [java] '--file=/app/project/app/jboss-6.4-inst1/pi-deploy/../bin/configure.cli'

configure.cli脚本的问题部分是:

#######################################################################
#
# JMS Queues
# 
#######################################################################
# JMS Queue for business events

/subsystem=messaging:add()

/subsystem=messaging/hornetq-server=default:add()

/subsystem=messaging/hornetq-server=default/jms-queue=BusinessEventQueue:add(\
  entries=["/queue/BusinessEventQueue"],\
  queue-address="jms.queue.BusinessEventQueue"\                  <------ HERE
)

/subsystem=messaging/hornetq-server=default/in-vm-connector=in-vm:add(server-id="0")
/subsystem=messaging/hornetq-server=default/in-vm-acceptor=in-vm:add(server-id="0")
/subsystem=messaging/hornetq-server=default/pooled-connection-factory=InVmJMSConnectionFactory:add(\
  entries=["java:/InVmJMSConnectionFactory"],\
  connector={"in-vm" => undefined}\
)

/subsystem=ejb3:write-attribute(name="default-resource-adapter-name", value="InVmJMSConnectionFactory")
/subsystem=ejb3:write-attribute(name=default-mdb-instance-pool, value="mdb-strict-max-pool")

我不明白的是:

我们正在从JBoss EAP 6.4迁移到JBoss EAP 6.4,并且旧/旧服务器运行正常。

我从未接触过任何类似于JMS的东西...

问题

这里的queue-address="jms.queue.BusinessEventQueue"是什么?这是名字吗?

您可能如何解决此问题? ->用名称参数替换?

谢谢

PS:情况有点复杂,因为我不能只更改本地文件。这些文件是从SVN存储库中提取的,因此任何尝试都涉及提交...等。

1 个答案:

答案 0 :(得分:1)

您不能将 queue-address 用作JMS-Queue“添加”操作的属性。由于这不是受支持的操作。尝试以下命令,它应该可以工作。

/subsystem=messaging/hornetq-server=default/jms-queue=BusinessEventQueue:add(\

entries = [“ / queue / BusinessEventQueue”])

在创建新的JMS队列时,默认情况下 queue-address 被设置为 jms.queue.BusinessEventQueue” 。您可以使用以下CLI命令检查该值。< / p>

/subsystem=messaging/hornetq-server=default/jms-queue=BusinessEventQueue:read-attribute(name=queue-address)

如果在添加新的JMS队列时使用了 queue-address ,则将使用如下所示的内容。

jms-queue add --queue-address=BusinessEventQueue --entries=/queue/BusinessEventQueue 
默认情况下会添加

jms.queue ,而无需通过该部分。