Original address: http://blog.csdn.net/shimly2010/article/details/9748223
Reference Documentation:
http://haohaoxuexi.iteye.com/blog/1893038
Http://www.blogjava.net/chenhui7502/archive/2011/08/28/357457.html
Most of the online articles about spring and Apache integration are rarely used in TIBCO EMS. Follow the spring JMS Standard, after referencing the two articles, do a demo run Tibco EMS. Can run.
1. Import Jar Pack
2. Configuration file
[HTML] View Plain copy <?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:context= "http:// Www.springframework.org/schema/context " xmlns:mongo=" http:// Www.springframework.org/schema/data/mongo " xsi:schemalocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema /beans/spring-beans-3.1.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd http:// Www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd http:// www.springframework.org/schema/context http://www.springframework.org/schema/context/ spring-context-3.1.xsd http://www.springframework.org/schema/data/mongo http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd "> <bean id=" targetconnectionfactory " class=" Com.tibco.tibjms.TibjmsConnectionFactory "> <property name= "ServerURL" value= "tcp://localhost:1234"/> </bean> <bean id= " ConnectionFactory " class=" Org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter "> &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBsp; <property name= "Targetconnectionfactory" ref= "Targetconnectionfactory"/> <property name= "username" value = "username" /> <property name= " Password " value=" password " /> </bean> <bean id= "Jmstemplate" class= "Org.springframework.jms.core.JmsTemplate" > <property name= " ConnectionFactory " ref=" ConnectionFactory "/> </bean > <bean id= " Queuedestination " class=" Com.tibco.tibjms.TibjmsQueue ">