Issue #7246 has been updated by R.I. Pienaar.

Parent task changed from #7226 to #7899


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

Author: Adam Edwards
Status: Accepted
Priority: Normal
Assignee: R.I. Pienaar
Category: Plugins
Target version: 1.3.x
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:
<pre>
persistent    = get_option("stomp.msg.persistent",false)
priority      = get_option("stomp.msg.priority", 4)
@connection.publish(target, msg, {'persistent'=> persistent, 'priority'=> 
priority})
</pre>

Old Code:

<pre>
@connection.publish(target, msg)
</pre>

Ideally, if the configuration can support it, it would be nice to have 
something like...   

<pre>
stomp.msg.headers = {'persistent'=> false, 'priority'=> 9}
</pre>

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