queue controllers and queue definitions

View: New views
4 Messages — Rating Filter:   Alert me  

queue controllers and queue definitions

by Duke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When you set the max-messages and flowcontrol-start-queuesize in the <queue-controllers>, does that become the default that is used for queues matching the predicate that do not explicitly define those values?

For example, if I set the following:

  <swiftlet name="sys$queuemanager">
    <queue-controllers>
      <queue-controller name="01" persistence-mode="non_persistent" predicate="tmp$%"/>
      <queue-controller name="02" predicate="sys$%"/>
      <queue-controller name="03" predicate="swiftmq%"/>
      <queue-controller name="04" predicate="rt$%"/>
      <queue-controller name="05" predicate="unroutable"/>
      <queue-controller name="06" predicate="%$%"/>
      <queue-controller name="07" predicate="%" max-messages="100" flowcontrol-start-queuesize="40" />
    </queue-controllers>
    <queues>
      <queue name="RSCONTROL"/>
      <queue name="RSSERVER"/>
    </queues>
  </swiftlet>

RSCONTROL and RSSERVER should have max-messages set to 100 right? When I use the explorer to examine the values, it is still using the default -1.

Any ideas?

Thanks
Duke

Re: queue controllers and queue definitions

by IIT Software :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Queue controllers are for system queues only (= created and used from SwiftMQ internally) and were introduced to provide better control over them. In earlier releases we had attributes such as cache-size etc as a single default attribute for all system queues. With queue controllers, one can group them (e.g. all temp. queues, all routing queues etc) and configure them as a group.

Regular queues are not created from queue controllers but from their explicit configuration (= max control).

Re: queue controllers and queue definitions

by queue-ALOT ApPrEnTiCe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

IIT...

Is there a way to change the default settings when a queue is created?  Ideally i'd like to be able to set my queue settings to a standard that we have established here.

Re: queue controllers and queue definitions

by IIT Software :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The defaults for regular queues are defined in kernel/sys$queuemanager/config.xml. If you change that, all regular queues will have these defaults. But if you change that file, you need to change it in any new release, too. IMO it's better to specify your custom attribute settings when you create the queue rather than modifying the defaults.