Announcement Announcement Module
Collapse
No announcement yet.
Warning in context xml Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Warning in context xml

    Hi!

    I have used the Integration to handle MQ messages. It work correctly, but I try to create function-separately context files.

    Here is the file:
    Code:
    <?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:context="http://www.springframework.org/schema/context"
    	xmlns:si="http://www.springframework.org/schema/integration"
    	xmlns:jms="http://www.springframework.org/schema/integration/jms"
    	xmlns:stream="http://www.springframework.org/schema/integration/stream"
    	xmlns:tx="http://www.springframework.org/schema/tx"
    	xmlns:util="http://www.springframework.org/schema/util"
    	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
    		http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.0.xsd
    		http://www.springframework.org/schema/integration/jms http://www.springframework.org/schema/integration/jms/spring-integration-jms-2.0.xsd
    		http://www.springframework.org/schema/integration/stream http://www.springframework.org/schema/integration/stream/spring-integration-stream-2.0.xsd
    		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
    		http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">
    
    	<context:component-scan base-package="com.com" />
    	<context:component-scan base-package="com.ftu" />
    
    	<bean id="connFactFCC" class="com.ibm.mq.jms.MQQueueConnectionFactory">
    		<property name="hostName" value="${MQ_HOST}" />
    		<property name="port" value="${MQ_PORT}" />
    		<property name="queueManager" value="${MQ_QUEUE_MANAGGER}" />
    		<property name="CCSID" value="${MQ_CCSID}" />
    		<property name="channel" value="${MQ_CHANNEL}" />
    		<property name="transportType">
    			<util:constant static-field="com.ibm.mq.jms.JMSC.MQJMS_TP_CLIENT_MQ_TCPIP" />
    		</property>
    	</bean>
    
            <bean id="jmsTrnManager" class="org.springframework.jms.connection.JmsTransactionManager">
                <property name="connectionFactory" ref="connFactFCC" />
            </bean>
    
    	<si:annotation-config />
    
    	<si:gateway id="sendMQMessage" service-interface="com.com.integration.SendMQMessage" />
    
    	<si:channel id="outMessSplit" />
    	<si:channel id="outMessRouter" />
    
    	<si:channel id="outMessSend" />
    
    	<bean id="mqMsgConv" class="com.com.integration.MqMsgConv">
    		<property name="source" value="${MQ_SOURCE}" />
    		<property name="destination" value="${MQ_DEST}" />
    		<property name="jmsType" value="${GF_MSG_NAME}" />
    		<property name="ccsId" value="${MQ_CCSID}" />
    	</bean>
    
    	<bean id="outputDestination" class="com.ibm.mq.jms.MQQueue">
    		<constructor-arg value="${MQ_OUTPUT_QUEUE}" />
    		<property name="targetClient">
    			<util:constant static-field="com.ibm.mq.jms.JMSC.MQJMS_CLIENT_JMS_COMPLIANT" />
    		</property>
    	</bean>
    
    	<jms:outbound-channel-adapter id="sendMessageFcc"
    		connection-factory="connFactFCC" destination="outputDestination"
    		channel="outMessSend" message-converter="mqMsgConv" />
    
    	<si:channel id="myInChannel" />
    
    	<jms:message-driven-channel-adapter 
    		id="MdcaBean"
    		destination-name="${MQ_REPLAY_QUEUE}" 
    		connection-factory="connFactFCC"
    		channel="myInChannel" 
    		auto-startup="false"
    		transaction-manager="jmsTrnManager" 
    		acknowledge="transacted"/> 
    
    	<bean id="inMQMessGetter" class="com.ftu.integration.InMQMessGetter" />
    
    	<si:service-activator input-channel="myInChannel" ref="inMQMessGetter" output-channel="myOutChannel" />
    
    	<stream:stdout-channel-adapter id="myOutChannel" />
    
    	<si:gateway id="inMQMessGateway" service-interface="com.com.integration.InMQMessGateway" />
    
    	<si:channel id="inMessRouter" />
    	
    	<si:channel id="procFtAns" />
    	<si:channel id="procFccAccAns" />
    	<si:channel id="unknownMqMess" />
    	
    </beans>
    When I edit this file in STS, then I have got a warning:
    Code:
    Referenced bean 'org.springframework.jms.listener.DefaultMessageListenerContainer#0' not found
    I know, this is only a warning, but I don't understand.
    Can anyone explain it me?

    Thx!
    Feri
Working...
X