基于Tomcat + JNDI + rabbitmq+spring实现JMS的点对点消息传送怎么配?
之前jboss是这样的
<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
</bean>
<!-- JMS连接工厂 -->
<bean id="jmsConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate">
<ref bean="jndiTemplate" />
</property>
<property name="jndiName">
<value>XAConnectionFactory</value>
</property>
</bean>
<!--定义JMS目标来收发消息: -->
<bean id="destinationVerifyInfo" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate">
<ref bean="jndiTemplate" />
</property>
<property name="jndiName">
<value>queue/USS.sendActivationEmailQueue1.2</value>
</property>
</bean>
<bean id="jmsTemplateVerifyInfoSMS" class="org.springframework.jms.core.JmsTemplate102">
<property name="connectionFactory" ref="jmsConnectionFactory" />
<property name="defaultDestination" ref="destinationVerifyInfoSMS" />
<property name="pubSubDomain">
<value>false</value>
</property>
<!-- 等待消息的时间(ms) -->
<property name="receiveTimeout">
<value>30000</value>
</property>
</bean>
移植到tomcat 报错org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsConnectionFactory' defined in file [C:\work\apache-tomcat-7.0.64\wtpwebapps\lenovoid-rebirth-service\WEB-INF\classes\applicationContext-jms-client.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name [XAConnectionFactory] is not bound in this Context. Unable to find [XAConnectionFactory].
请问怎么解决呢?