WildFly 10.是否可以配置多个JNDI?

时间:2016-10-24 09:03:19

标签: jms wildfly-10

WildFly 10.是否可以配置多个JNDI?所以这是一个共同话题。

独立-全ha.xml:

<subsystem xmlns="urn:jboss:domain:naming:2.0">
        <bindings>
            <external-context name="java:/global/Server" module="org.jboss.as.naming" class="javax.naming.InitialContext" cache="true">
                <environment>
                    <property name="java.naming.factory.initial" value="org.jboss.naming.remote.client.InitialContextFactory"/>
                    <property name="java.naming.provider.url" value="http-remoting://172.16.2.1:8080"/>
                    <property name="java.naming.security.principal" value="jms"/>
                    <property name="java.naming.security.credentials" value="jms"/>
                </environment>
            </external-context>
            <lookup name="java:global/ExportedTopic" lookup="jms/topic/MyTopic"/>
            <lookup name="java:global/ExportedFactory" lookup="java:jboss/exported/jms/RemoteConnectionFactory"/>
        </bindings>
        <remote-naming/>
    </subsystem>

0 个答案:

没有答案