ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Messages with diferent priority

Post new topic  Reply to topic
 Messages with diferent priority « View previous topic :: View next topic » 
Author Message
stsm
PostPosted: Fri Feb 08, 2008 8:04 am    Post subject: Messages with diferent priority Reply with quote

Novice

Joined: 27 Aug 2007
Posts: 10

Hi.

I've a WAS6.1 & MQ running under WIN X32. In this WAS i have a MDB connected to a cue throws a port listener. In the MQ cue put messages with diferent priority.

The problem that I found is:

1. If I have messages with diferent priority, the messages with higger priority are served afther others with low priority.
2. Otherwise, if only one messages arrives with high priority, it remains 5 seconds in the cue.
3. If the message have 0 priority, it was read inmediatly.

What is the cause? It's possible to configurate it?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Feb 08, 2008 9:07 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

You have to understand that the MDB mechanism is a polling mechanism. Whenever a fresh poll is made is when you get your messages reordered. Everything that gets consumed within the poll interval gets consumed in the order it was when last polled.

Any new message with higher priority coming in during the poll interval would only get consumed after the next poll, as long as you have enough work to carry you through to the next poll.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
stsm
PostPosted: Mon Feb 11, 2008 3:04 am    Post subject: Reply with quote

Novice

Joined: 27 Aug 2007
Posts: 10

Hi.

It meens that I reduce the "poolingInterval" to 1000ms the problem is solved? This parameter is defined into "JMS Connection factory" and his value is 5000 (default)
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Feb 11, 2008 4:15 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

stsm wrote:
Hi.

It meens that I reduce the "poolingInterval" to 1000ms the problem is solved? This parameter is defined into "JMS Connection factory" and his value is 5000 (default)

No it just means it is 5 times less likely to happen...

_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
stsm
PostPosted: Tue Feb 12, 2008 1:48 am    Post subject: Reply with quote

Novice

Joined: 27 Aug 2007
Posts: 10

I try to reduce the PollingInterval to 1000 but the problem still ocurs:

Code:
2008-02-11 15:52:35,628 [MessageListenerThreadPool : 1] INFO 
2008-02-11 15:52:40,659 [MessageListenerThreadPool : 1] INFO


There is another configuration that i have to tune up?
Back to top
View user's profile Send private message
EddieA
PostPosted: Tue Feb 12, 2008 9:41 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

What's the Message Delivery Sequence (MSGDLVSQ) set at.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
stsm
PostPosted: Wed Feb 13, 2008 2:56 am    Post subject: Reply with quote

Novice

Joined: 27 Aug 2007
Posts: 10

Hi EddieA.

The MSGDLVSQ parameter of this queue is defined to "Priority"
Back to top
View user's profile Send private message
stsm
PostPosted: Mon Feb 18, 2008 12:55 am    Post subject: Configuration Reply with quote

Novice

Joined: 27 Aug 2007
Posts: 10

For more information, this is the configuration of this MQ:

Code:
<factories xmi:type="resources.jms.mqseries:MQQueueConnectionFactory" xmi:id="MQQueueConnectionFactory_1193646450798" name="factoryname" jndiName="jms/XXXConnectionFactory" authMechanismPreference="BASIC_PASSWORD" XAEnabled="true" queueManager="MQXXXR01" port="0" transportType="BINDINGS" msgRetention="true" failIfQuiesce="true" pollingInterval="5000" rescanInterval="5000" useConnectionPooling="true">
  <connectionPool xmi:id="ConnectionPool_1193646450798" />
  <mapping xmi:id="MappingModule_1193646450798" mappingConfigAlias="DefaultPrincipalMapping" authDataAlias="" />
  <sessionPool xmi:id="ConnectionPool_1193646450799" />
  </factories>
<factories xmi:type="resources.jms.mqseries:MQQueue" xmi:id="MQQueue_1193646522939" name="queuename" jndiName="jms/yyy" persistence="APPLICATION_DEFINED" priority="APPLICATION_DEFINED" specifiedPriority="0" expiry="APPLICATION_DEFINED" specifiedExpiry="0" baseQueueName="YYY.QUEUE" useNativeEncoding="false" integerEncoding="Normal" decimalEncoding="Normal" floatingPointEncoding="IEEENormal" targetClient="JMS" queueManagerPort="0" />
  <factories xmi:type="resources.jms.mqseries:MQQueue" xmi:id="MQQueue_1193647064790" name="cgfilogrp" jndiName="jms/yyy" persistence="APPLICATION_DEFINED" priority="APPLICATION_DEFINED" specifiedPriority="0" expiry="APPLICATION_DEFINED" specifiedExpiry="0" baseQueueName="YYY.QUEUE" useNativeEncoding="false" integerEncoding="Normal" decimalEncoding="Normal" floatingPointEncoding="IEEENormal" targetClient="JMS" queueManagerPort="0" />
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Messages with diferent priority
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.