<?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:aop="http://www.springframework.org/schema/aop"
	xmlns:tx="http://www.springframework.org/schema/tx"
	xmlns:util="http://www.springframework.org/schema/util"
	xmlns:config="http://www.anyframejava.org/schema/service"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
	http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd  
	http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd			
	http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd 
	http://www.anyframejava.org/schema/service http://www.anyframejava.org/schema/service/anyframe-core-service-2.0.xsd">


	<!-- spring's transaction manager delegates to WebLogic	Server's transaction manager -->
	<bean id="transactionManagerJTA"
		class="org.springframework.transaction.jta.WebLogicJtaTransactionManager">
		<property name="transactionManagerName"	value="javax.transaction.TransactionManager" />
		<property name="jndiTemplate" ref="jnditemplate"></property>
	</bean>
	
	<bean id="jnditemplate" class="org.springframework.jndi.JndiTemplate" >
		<property name="environment">
			<props>
				<prop key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
				<prop key="java.naming.provider.url">t3://server.ip:7001</prop>			
			</props>
		</property>
	</bean>
</beans>

