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 » IBM MQ Java / JMS » MSGSELECTION(CLIENT) vs MSGSELECTION(BROKER)

Post new topic  Reply to topic
 MSGSELECTION(CLIENT) vs MSGSELECTION(BROKER) « View previous topic :: View next topic » 
Author Message
matthewr
PostPosted: Mon Jan 27, 2003 5:28 am    Post subject: MSGSELECTION(CLIENT) vs MSGSELECTION(BROKER) Reply with quote

Newbie

Joined: 09 Jan 2003
Posts: 8
Location: London

The TopicConnectionFactory has a property of MSGSELECTION. By default this is CLIENT. It can be changed to BROKER.

However this feature appears undocumented. Does anyone have any information about it? My best guess is this is where the evaluation of message selectors occurs.

The documentation in "MQ Using Java.pdf", page 288, appears counterintuitive:
"A property value might duplicate a value in a message’s body. JMS does not define a policy for what should or should not be made into a property. However, application developers must be aware that JMS providers probably handle data in a message’s body more efficiently than data in a message’s properties. For best performance, applications must use message properties only when they need to customize a message’s header. The primary reason for doing this is to support customized message selection."

Surely the properties in the header would be more efficient? Particularly if the message wasn't in the MRM? Can anyone explain this.

Thanks for any help. Cheers - Matthew
_________________
Cheerio
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
kingdon
PostPosted: Mon Jan 27, 2003 7:44 am    Post subject: Reply with quote

Acolyte

Joined: 14 Jan 2002
Posts: 63
Location: UK

Yes, MSGSELECTION(BROKER) means that the ability of the broker to evaluate message selectors can be exploited. To make use of this you need to be using one of MQSI, EventBroker or the embedded JMS provider in WAS5. The MA0C broker can't support server side selectors.

The section on message properties you refer to is a rather generic statement, which is basically trying to say that user properties are likely to have a higher cost than the same data carried in the message body. The higher cost might be in terms of a less compact data representation, or a cpu overhead in sending and receiving the message. In particular, if someone choose to place several thousand properties in the message header then this would likely have a negative impact on the performance of message selection. For this reason, the recommendation is to only place those data items that you actually want to use for message selection in the user properties, and put everything else in the message body. (Remember that from JMS a selector can only refer to properties, and not to the message body.)

Regards,
James.
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 » IBM MQ Java / JMS » MSGSELECTION(CLIENT) vs MSGSELECTION(BROKER)
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.