Issue #7246 has been reported by Adam Edwards.

----------------------------------------
Feature #7246: add the ability to add the priority to JMS messages
https://projects.puppetlabs.com/issues/7246

Author: Adam Edwards
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Keywords: 
Branch: 
Affected mCollective version: 


Currently when mcollective sends the JMS messages via stomp, it
doesn't appear to use a JMSpriority, therefore the default is getting
used(4).   This is currently causing me issues as I have lots of
messaging traffic and I need the mcollective to be prioritized over my
other messaging traffic.

Looking at the rubygems-stomp code, I ran a test and you can pass the
priority to the 'send' method as follows:

Would someone mind updating the code on line 147 of stomp.rb to be
something similar to the following?

New Code:
                    persistent    = get_option("stomp.msg.persistent",
false)
                    priority      = get_option("stomp.msg.priority",
4)
                    @connection.publish(target, msg, {'persistent'=>
persistent, 'priority'=> priority})

Old Code:
@connection.publish(target, msg)


Ideally, if the configuration can support it, it would be nice to have 
something like...   stomp.msg.headers = {'persistent'=> false, 'priority'=> 9}  
 this way we could add any additional headers without any need for code changes.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to