Announcement Announcement Module
Collapse
No announcement yet.
Setting the JMS Priority of Message Is not working Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting the JMS Priority of Message Is not working

    We have tried to set the JMSpriority of a message as,

    jmsMessage.setJMSPriority(9);
    or
    message = MessageBuilder.fromMessage(message).setPriority(9) .build();

    and posting/sending message like super.handleMessage(message);

    Configuration:

    <bean id="sHEJMSGatewayBean" class="com.one.two.xxx.yyy.CustomJmsSendingMessage Handler">
    <constructor-arg ref="toSHEJMSTemplate"/>
    <property name="extractPayload" value="true"/>
    <property name="headerMapper">
    <bean class="com.one.two.xxx.yyy.SHEJmsHeaderMapper" />
    </property>
    </bean>

    <bean id="toSHEJMSTemplate" class="org.springframework.jms.core.JmsTemplate">
    <property name="connectionFactory" ref="QueueConnectionFactory" />
    <property name="explicitQosEnabled" value="true"/>
    <property name="defaultDestinationName" value="DestinationQ" />
    <property name="destinationResolver">
    <bean class=" org.springframework.jms.support.destination.JndiDe stinationResolver"/>
    </property>
    </bean>

    But the problem is, at the destination side, priority of the request become '4' instead of '9'.
    Can you please suggest us how to set the Priority of a message?
    We are Using Spring Integration Version 2.0.5

    Thank you.

  • #2
    Sorry for not getting to this sooner. We are in the process of moving to StackOverflow for our forums.

    This question is probably a better candidate for StackOverflow, perhaps against the #spring-jms tag.
    If you do post it there, please reply here with the link.

    Thanks

    Comment

    Working...
    X