Hi,
Thanks a lot for your help. It is now working for me. Initially I set the priority on the JMS Message object and used the method send(message) of message producer.. As this method calls send with the default priority -4 , I changed my program to use the four argument method

send(Message message, int deliveryMode, int priority, long timeToLive)

to make it work. Thanks for your help and time

Regards,
Subramanian T


At 12:28 AM 10/31/02, Adrian Brock wrote:
Hi,

I'm moving you to jboss-user

Try the javadocs.

send
public void send(Message message)
throws JMSException

Sends a message to the queue. Uses the QueueSender's default delivery mode, priority, and time to live.

public void send(Message message,
int deliveryMode,
int priority,
long timeToLive)
throws JMSException

Sends a message to the queue, specifying delivery mode, priority, and time to live.

Regards,
Adrian

From: "T. Subramanian" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [JBoss-dev] JMS - priority queueing
Date: Wed, 30 Oct 2002 22:24:15 +0530

Hi All,
I am using JBoss 3.0.0 version. When I tried with JMS examples that uses the priority , it doesn't work as expected.

Following are the steps I have done. In a class used to send JMS messages to a queue I set the priority ranging from 0 -9. I used setJMSPriority(int) method in TextMessage object. But in the receiving end when I received the messages I always the get the priority as 4. Method I used to get the priority is getJMSPriority() method in TextMessage object.

I am using the JMS implementation that comes with JBoss 3.0.0.

Can any one using the priority feature of JMS ?. Any pointers will be of great help to me

Thanks,
Subramanian T



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

_________________________________________________________________
Choose an Internet access plan right for you -- try MSN! http://resourcecenter.msn.com/access/plans/default.asp



-------------------------------------------------------
This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to