다음과 같이 Spring 설정이 있습니다.JNDI DataSource Bean을 JEE로 변환하십시오. jndi-lookup
<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">org.jnp.interfaces.NamingContextFactory</prop>
<prop key="java.naming.provider.url">jnp://jndi.myURL.com:1099</prop>
<prop key="java.naming.factory.url.pkgs">org.jboss.naming:org.jnp.interfaces</prop>
<prop key="jnp.disableDiscovery">true</prop>
</props>
</property>
</bean>
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="jdbc/mysql"/><!-- DataSource Name -->
<property name="resourceRef" value="false"/>
<property name="jndiTemplate" ref="jndiTemplate" />
</bean>
JEE 태그 형식으로 변환하고 싶습니다.
나는 그것을 정의하는 방법이 있나요
<jee:jndi-lookup jndi-name="jdbc/mysql" resource-ref="false" >
<jee:environment>
....
</jee:environment>
</jee:jndi-lookup>
로 내 DataSrouce을 정의합니다.