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 » Request for sample code

Post new topic  Reply to topic
 Request for sample code « View previous topic :: View next topic » 
Author Message
kirankinnu
PostPosted: Thu Sep 02, 2004 11:41 am    Post subject: Request for sample code Reply with quote

Centurion

Joined: 12 Jun 2004
Posts: 128
Location: Chicago, IL

Hi there,
I am new to MQ. could anyone send me the sample code to set the priority of a message. i tried hard but couldnt figure out how to do. can we actually do that? thanx --
--kiran
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 02, 2004 11:48 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Priority is a variable defined in the MQMessage class.
Using Java wrote:
priority
public int priority
The message priority. The special value MQC.MQPRI_PRIORITY_AS_Q_DEF can also be set in outbound messages, in which case the priority for the message is taken from the default priority attribute of the destination queue.

The default value is MQC.MQPRI_PRIORITY_AS_Q_DEF.

_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Sep 02, 2004 11:48 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

What programming language?
If java, then IBM Base MQ apis or JMS?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kirankinnu
PostPosted: Thu Sep 02, 2004 11:50 am    Post subject: Reply with quote

Centurion

Joined: 12 Jun 2004
Posts: 128
Location: Chicago, IL

thanx for replies, yup thats in java ( sorry for not mentioning).
Back to top
View user's profile Send private message
kirankinnu
PostPosted: Thu Sep 02, 2004 12:04 pm    Post subject: Reply with quote

Centurion

Joined: 12 Jun 2004
Posts: 128
Location: Chicago, IL

Thanx jeff i got it.
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 » Request for sample code
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.