Products | Versions |
---|---|
TIBCO Enterprise Message Service | - |
Not Applicable | - |
Description:
Changing the default properties during the creation of a new topic or queue in TIBCO EMS via the Administrative console without using the addprops or setprop command.
When creating a destination (queue/topic) using EMS Admin tool commands and do not mention the default property for the destination, then the EMS server will inherit the value from the wildcard parent destination. When the wildcard parent destination is not present, the default value is assigned. You can achieve the requirement by creating a one time wild card parent destination with the property needed. Once a new child destination is created, it will inherit the value from the parents. See the following example for a detailed explanation.
Example.
1). Create a queue "queue.test.>" and assign the prefetch value to 10
tcp://localhost:7222> create queue queue.test.> prefetch=10
Queue 'queue.test.>' has been created
tcp://localhost:7222> show queue queue.test.>
Queue: queue.test.>
Type: static
Properties: *prefetch=10,store=$sys.nonfailsafe
JNDI Names: <none>
Bridges: <none>
Receivers: 0
Pending Msgs: 0, (0 persistent)
Delivered Msgs: 0
Pending Msgs Size: 0.0 Kb, (0.0 Kb persistent)
tcp://localhost:7222>
2). Create another queue "queue.abc"
tcp://localhost:7222> show queue queue.abc
Queue: queue.abc
Type: static
Properties: *prefetch=5,*store=$sys.nonfailsafe
JNDI Names: <none>
Bridges: <none>
Receivers: 0
Pending Msgs: 0, (0 persistent)
Delivered Msgs: 0
Pending Msgs Size: 0.0 Kb, (0.0 Kb persistent)
tcp://localhost:7222>
3). Create a queue "queue.test.1"
tcp://localhost:7222> create queue queue.test.1
Queue 'queue.test.1' has been created
tcp://localhost:7222> show queue queue.test.1
Queue: queue.test.1
Type: static
Properties: *prefetch=10,*store=store-test
JNDI Names: <none>
Bridges: <none>
Receivers: 0
Pending Msgs: 0, (0 persistent)
Delivered Msgs: 0
Pending Msgs Size: 0.0 Kb, (0.0 Kb persistent)
tcp://localhost:7222>
In step 2, the queue "queue.abc" does not match the wildcard, so the system default *prefetch=5 is assigned to this queue.
In step 3, the queue "queue.test.1" matches the wildcard queue create in step 1, so "*prefetch=10" store is assigned to this queue.
If the required prefetch is set at the proper wildcard destinations, newly created queues under that wildcard will use properties that will use the parent value.