Announcement Announcement Module
Collapse
No announcement yet.
RolledBack message Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • RolledBack message

    Hi,

    I'm trying to configure a MDP as below and deploy to WebLogic.

    <bean id="listenerContainer"
    class="org.springframework.jms.listener.DefaultMes sageListenerContainer">
    <property name="connectionFactory" ref="xaConnFactory" />
    <property name="destination" ref="queue" />
    <property name="messageListener" ref="dummyListener" />
    <property name="sessionTransacted" ref="true"/>
    </bean>

    consider i send two messages m1 and m2. If m1 fails then it should rollback to sender queue and then m2 should be processed. Now here first scenario is happening but the second scenario is not happening. m2 is not consumed instead m1 is consumed again and again which should not happen. basically i want rollback message should be consumed last like round robin. Please help me out in this. i'm using ibm mq series

  • #2
    That's not the way a QUEUE works. If a message delivery rolls back, the SAME message will be delivered again until either 1) the message is successfully processed or 2) the message exceeds the redelivery threshold and is moved to a DLQ.

    This is not a Spring issue, this is a JMS issue.

    Originally posted by neo_prabu View Post
    Hi,

    I'm trying to configure a MDP as below and deploy to WebLogic.

    <bean id="listenerContainer"
    class="org.springframework.jms.listener.DefaultMes sageListenerContainer">
    <property name="connectionFactory" ref="xaConnFactory" />
    <property name="destination" ref="queue" />
    <property name="messageListener" ref="dummyListener" />
    <property name="sessionTransacted" ref="true"/>
    </bean>

    consider i send two messages m1 and m2. If m1 fails then it should rollback to sender queue and then m2 should be processed. Now here first scenario is happening but the second scenario is not happening. m2 is not consumed instead m1 is consumed again and again which should not happen. basically i want rollback message should be consumed last like round robin. Please help me out in this. i'm using ibm mq series

    Comment

    Working...
    X