말씀하신 detaSource 올립니다.
- 작성자 :
- 김*궁
- 작성일 :
- 2012-04-17 15:53:27
- 조회수 :
- 1,792
- 구분 :
- 실행환경
- 진행상태 :
- 완료
Q
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jee="http://www.springframework.org/schema/jee"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd">
<jee:jndi-lookup id="dataSource" jndi-name="sclpopool" resource-ref="true" />
<!-- <jee:environment>
java.naming.factory.initial=${jeus.java.naming.factory.initial}
java.naming.provider.url=${172.19.254.101:23561}
</jee:environment>
</jee:jndi-lookup> -->
</beans>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jee="http://www.springframework.org/schema/jee"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd">
<jee:jndi-lookup id="dataSource" jndi-name="sclpopool" resource-ref="true" />
<!-- <jee:environment>
java.naming.factory.initial=${jeus.java.naming.factory.initial}
java.naming.provider.url=${172.19.254.101:23561}
</jee:environment>
</jee:jndi-lookup> -->
</beans>
A
안녕하세요.. 김기궁님..
jee schema 처리 시에 WAS와의 충돌 등의 문제인 것 같습니다.
다음과 같이 JndiObjectFactoryBean 사용으로 변경해 보십시오..
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<bean id="serverDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="sclpopool"/>
</bean>
</beans>
기존 jee 관련 schema 정보도 삭제해 주셔야 할 것 같습니다.
그럼.. 즐거운 하루되십시오.
감사합니다.
jee schema 처리 시에 WAS와의 충돌 등의 문제인 것 같습니다.
다음과 같이 JndiObjectFactoryBean 사용으로 변경해 보십시오..
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<bean id="serverDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="sclpopool"/>
</bean>
</beans>
기존 jee 관련 schema 정보도 삭제해 주셔야 할 것 같습니다.
그럼.. 즐거운 하루되십시오.
감사합니다.