【发布时间】:2017-10-26 19:50:15
【问题描述】:
我正在尝试借助 Spring integration.getting below Exception 来监听 weblogic 队列
org.springframework.beans.factory.BeanCreationException:创建名为“inboundJms.container”的bean时出错:设置bean属性“connectionFactory”时无法解析对bean“connectionFactory”的引用;嵌套异常是 org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'connectionFactory' available
配置.xml
<bean id="wljndiTemplate" class="org.springframework.jndi.JndiTemplate" lazy-init="true">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
<prop key="java.naming.provider.url">-------</prop>
<prop key="java.naming.security.principal">-------</prop>
<prop key="java.naming.security.credentials">-------</prop>
</props>
</property>
</bean>
<bean id="wlConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate" ref="wljndiTemplate" />
<property name="jndiName" value="QueueConnFactory" />
</bean>
<bean id="wlDestinationResolver" class="org.springframework.jms.support.destination.JndiDestinationResolver">
<property name="jndiTemplate" ref="wljndiTemplate" />
<property name="cache" value="true" />
</bean>
<bean id="inboundResponseQueue" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate" ref="wljndiTemplate" />
<property name="jndiName" value="OutboundQueue" />
InboundAdapter.xml
<jms:message-driven-channel-adapter id="inboundJms" destination="ContactOutboundQueue" channel="messageReceiver" />
<!--<router id="msgRouter" auto-startup="true" input-channel="messageReceiver" default-output-channel="" ref="routeInfo" method="getQueueMessage"/>-->
<integration:service-activator id="msgRouter" input-channel="messageReceiver" ref="routeInfo" method="getQueueMessage"/>
【问题讨论】:
标签: java weblogic spring-integration