简体   繁体   中英

Configure JNDI properties in wildlfly 10.1

In my application it is using port 1099 for JMX Service (jmx:rmi://jndi/rmi://localhost:1099/jmxrmi). Does anyone know how we can configure wildfly not to start this remote JNDI lookup service or any other way to stop listening to port 1099. Is there anyway we can configure JNDI properties in standalone config for wildfly 10.1?

My jmx, remoting and naming subsystem config as follows;

<subsystem xmlns="urn:jboss:domain:jmx:1.3">
        <expose-resolved-model/>
        <expose-expression-model/>
        <!--<remoting-connector/>-->
</subsystem>
<subsystem xmlns="urn:jboss:domain:naming:2.0">
        <!--<remote-naming/>-->
</subsystem>
<subsystem xmlns="urn:jboss:domain:pojo:1.0"/>
<subsystem xmlns="urn:jboss:domain:remoting:3.0">
        <endpoint/>
        <http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/>
</subsystem>

If you are facing port conflicts you can refer the Wildfly Admin Guide - Configuring Interfaces and Ports . If you want to bind simple properties to JNDI, you can refer Wildfly Documentation - Naming Subsystem Configuration

For both you can tweak the standalone config xml file or use CLI commands.

What is your JMX and remoting subsystem configurations ? I think you should either use the management port or change your connector port there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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