I’m using JBoss 4.2 and Websphere JCA MQ Connector . I’m trying to create a spring MDP but I’m receiving the following error:
MQJCA1025:Message consumer must not have a message listener.;
Looking at WMQ’s description for this message it states:
An application attempted to set a message listener for a JMS message consumer. This exception occurs only if the application is running in a managed environment.
So has anyone done this. If so can someone tell me what’s wrong with what I’m doing?
Code:<jee:jndi-lookup id="connectionFactory" jndi-name="java:QUEUE_MANAGER" /> <jee:jndi-lookup id="destination" jndi-name="TEST_QUEUE" /> <bean id="myMdp" class="com.test.MyMdp" /> <bean id="myMdpAdapter" class="org.springframework.jms.listener.adapter.MessageListenerAdapter" > <property name="delegate" ref="myMdp" /> <property name="defaultListenerMethod" value="processMessage" /> <property name="messageConverter"> <null /> </property> </bean> <bean class="org.springframework.jms.listener.SimpleMessageListenerContainer" > <property name="connectionFactory" ref="connectionFactory" /> <property name="destination" ref="destination" /> <property name="messageListener" ref="myMdpAdapter" /> </bean>


Reply With Quote