spring_smpp.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
	<bean id="propertyConfigurer"
		class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
		<property name="locations">
			<list>
				<value>classpath:config.properties</value>
			</list>
		</property>
	</bean>

	<bean id="G_SMPP" class="com.msp.smg.SMPPService" init-method="startSender">
		<property name="smscIP" value="${G_SMPP.smscIP}" />
		<property name="smscPort" value="${G_SMPP.smscPort}"></property>
		<property name="sysId" value="${G_SMPP.smscSystemId}"></property>
		<property name="syspwd" value="${G_SMPP.smscPassword}"></property>
		<property name="smscRequestCount"  value="${G_SMPP.smscRequestCount}"></property>
		<property name="smscName"  value="${G_SMPP.name}"></property>		
	</bean>

	<bean id="C_SMPP" class="com.msp.smg.SMPPService" init-method="startSender">
		<property name="smscIP" value="${C_SMPP.smscIP}" />
		<property name="smscPort" value="${C_SMPP.smscPort}"></property>
		<property name="sysId" value="${C_SMPP.smscSystemId}"></property>
		<property name="syspwd" value="${C_SMPP.smscPassword}"></property>
		<property name="smscRequestCount"  value="${C_SMPP.smscRequestCount}"></property>
		<property name="smscName"  value="${C_SMPP.name}"></property>		
	</bean>
	
</beans>

 

阅读更多

没有更多推荐了,返回首页