如何将自定义 JNDI 资源添加到类似 glassfish 服务器的 <custom-resource> 的 wildfly-10 中?
How to add custom JNDI resources into wildfly-10 similar like <custom-resource> of glassfish server?
这是用于在 glassfish 服务器中添加自定义资源的代码,但我的要求是在 wildfly-10 服务器中实现这一点,但我不知道该怎么做,所以请帮我解决这个问题
<custom-resource
factory-class="org.glassfish.resources.custom.factory.PropertiesFactory" res-
type="java.util.Properties" jndi-name="docdokuplm.config">
<property name="codebase" value="http://localhost:9001"></property>
<property name="vaultPath" value="/var/lib/docdoku"></property>
</custom-resource>
<custom-resource
factory-class="org.glassfish.resources.custom.factory.PropertiesFactory" res-
type="java.util.Properties" jndi-name="auth.config">
<property name="basic.header.enabled" value="true"></property>
<property name="session.enabled" value="true"></property>
<property name="jwt.key" value="singh20111995"></property>
<property name="jwt.enabled" value="true"></property>
</custom-resource>
<subsystem xmlns="urn:jboss:domain:naming:2.0">
<bindings>
<object-factory name="java:/docdokuplm.config" module="net.flexoptix.jbossTools" class="net.flexoptix.jbossTools.PropertiesFactory">
<environment>
<property name="vaultPath" value="/var/lib/docdoku"/>
<property name="codebase" value="http://localhost:8080"/>
</environment>
</object-factory>
您可以添加子系统以在 wildfly 中添加自定义 JNDI。
这是用于在 glassfish 服务器中添加自定义资源的代码,但我的要求是在 wildfly-10 服务器中实现这一点,但我不知道该怎么做,所以请帮我解决这个问题
<custom-resource
factory-class="org.glassfish.resources.custom.factory.PropertiesFactory" res-
type="java.util.Properties" jndi-name="docdokuplm.config">
<property name="codebase" value="http://localhost:9001"></property>
<property name="vaultPath" value="/var/lib/docdoku"></property>
</custom-resource>
<custom-resource
factory-class="org.glassfish.resources.custom.factory.PropertiesFactory" res-
type="java.util.Properties" jndi-name="auth.config">
<property name="basic.header.enabled" value="true"></property>
<property name="session.enabled" value="true"></property>
<property name="jwt.key" value="singh20111995"></property>
<property name="jwt.enabled" value="true"></property>
</custom-resource>
<subsystem xmlns="urn:jboss:domain:naming:2.0">
<bindings>
<object-factory name="java:/docdokuplm.config" module="net.flexoptix.jbossTools" class="net.flexoptix.jbossTools.PropertiesFactory">
<environment>
<property name="vaultPath" value="/var/lib/docdoku"/>
<property name="codebase" value="http://localhost:8080"/>
</environment>
</object-factory>
您可以添加子系统以在 wildfly 中添加自定义 JNDI。