简体   繁体   English

如何使用JBOSS CLI读取套接字绑定?

[英]How can I read socket binding with JBOSS CLI?

I'm using RED HAT JBOSS ENTERPRISE APPLICATION PLATFORM 6.4.2.GA . 我正在使用RED HAT JBOSS ENTERPRISE APPLICATION PLATFORM 6.4.2.GA Using EAP Management ( Configuration -> Connector -> Mail -> JNDI Name -> View ) 使用EAP管理( Configuration - > Connector - > Mail - > JNDI Name - > View

I'm able to see value inside of .xml file: 我能够看到.xml文件中的值:

# grep remote-destination /etc/jbossas/standalone/standalone-full-ha.xml
            <remote-destination host="X" port="25"/>
            <remote-destination host="X" port="5445"/>
            <remote-destination host="X" port="5445"/>
            <remote-destination host="X" port="25"/>
            <remote-destination host="X" port="25"/>
# 

How can I get value of Socket Binding via jboss-cli.sh ? 如何通过jboss-cli.sh获得Socket Binding值?

If you use only standard-sockets socket binding group, then use following JBoss CLI command to list remote-destinations: 如果仅使用standard-sockets套接字绑定组,则使用以下JBoss CLI命令列出远程目标:

/socket-binding-group=standard-sockets \
    /remote-destination-outbound-socket-binding=*:read-resource()

If you use more socket groups then call the similar command for every group. 如果使用更多套接字组,则为每个组调用类似命令。

Or you can read whole socket-binding configuration at once: 或者您可以立即读取整个套接字绑定配置:

/socket-binding-group=*:read-resource(recursive=true)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM