1

我需要为 hornet Q 子系统创建连接器、接受器和连接工厂。我在连接到它时遇到错误。你能告诉我我的 cli 可能有什么问题吗

hornetq.txt

batch
/subsystem=messaging/hornetq-server=default/remote-connector=netty-ssl:add(socket-binding=ssl-messaging)
/subsystem=messaging/hornetq-server=default/remote-connector=netty-ssl/param=ssl-enabled:add(value=true)
/subsystem=messaging/hornetq-server=default/remote-connector=netty-ssl/param=trust-store-path:add(value="/opt/jboss/security/CompanyServerTruststore.jks")
/subsystem=messaging/hornetq-server=default/remote-connector=netty-ssl/param=trust-store-password:add(value="changeit")
/subsystem=messaging/hornetq-server=default/remote-acceptor=netty-ssl:add(socket-binding=ssl-messaging)
/subsystem=messaging/hornetq-server=default/remote-acceptor=netty-ssl/param=ssl-enabled:add(value=true)
/subsystem=messaging/hornetq-server=default/remote-acceptor=netty-ssl/param=key-store-path:add(value="${jboss.web.ssl.keystore:/opt/jboss/security/CompanyServerKeyFile.jks}")
/subsystem=messaging/hornetq-server=default/remote-acceptor=netty-ssl/param=key-store-password:add(value="${VAULT::CompanyKeystore::keystore_pw::1}")
/subsystem=messaging/hornetq-server=default/connection-factory=SSLRemoteConnectionFactory:add(connector={"netty-ssl"=>undefined}, entries = ["java:jboss/exported/jms/SSLRemoteConnectionFactory"])
run-batch

错误 :

C:\Temp\FSW\jboss-eap-6.1\bin>jboss-cli.bat --connect --file=C:\Temp\hornetq.txt
#1 /subsystem=messaging/hornetq-server=default/remote-connector=netty-ssl:add(socket-binding=ssl-messaging)
#2 /subsystem=messaging/hornetq-server=default/remote-connector=netty-ssl/param=ssl-enabled:add(value=true)
#3 /subsystem=messaging/hornetq-server=default/remote-connector=netty-ssl/param=trust-store-path:add(value="/opt/jboss/security/CompanyServerTruststore.jks")
#4 /subsystem=messaging/hornetq-server=default/remote-connector=netty-ssl/param=trust-store-password:add(value="changeit")
#5 /subsystem=messaging/hornetq-server=default/remote-acceptor=netty-ssl:add(socket-binding=ssl-messaging)
#6 /subsystem=messaging/hornetq-server=default/remote-acceptor=netty-ssl/param=ssl-enabled:add(value=true)
#7 /subsystem=messaging/hornetq-server=default/remote-acceptor=netty-ssl/param=key-store-path:add(value="${jboss.web.ssl.keystore:/opt/jboss/security/CompanyServerKeyFile.jks}")
#8 /subsystem=messaging/hornetq-server=default/remote-acceptor=netty-ssl/param=key-store-password:add(value="${VAULT::CompanyKeystore::keystore_pw::1}")
#9 /subsystem=messaging/hornetq-server=default/connection-factory=SSLRemoteConnectionFactory:add(connector={"netty-ssl"=>undefined}, entries = ["java:jboss/exported/jms/SSLRemoteConnectionFactory"])
{"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-9" => {"JBAS014671: Failed services" => {"jboss.messaging.default.jms.connection-factory.SSLRemoteConnectionFactory" => "org.jboss.msc.service.StartException in service jboss.messaging.default.jms.c
onnection-factory.SSLRemoteConnectionFactory: JBAS011639: Failed to create connection-factory
    Caused by: HornetQException[errorType=ILLEGAL_STATE message=HQ129005: Connector {0} not found on the main configuration file]"}}}}
Press any key to continue . . .
4

1 回答 1

1

连接工厂找不到添加的连接器。因此,您需要从批处理中删除连接工厂添加操作,重新加载服务器,然后添加 CF。添加的连接器仅在重新加载后才会绑定到服务器。

于 2017-05-04T18:03:27.213 回答