JBOSS Cli 添加连接器、接受器和连接工厂

JBOSS Cli adding connector,acceptor and Connection factory

我需要为大黄蜂 Q 创建连接器、接受器和连接工厂 subsystem.Iam 在连接到 it.Can 时出现以下错误,请告诉我我的 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 . . .

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