10.02.2013 Views

Progress Sonic 8.0 ESB Configuration and Management Guide

Progress Sonic 8.0 ESB Configuration and Management Guide

Progress Sonic 8.0 ESB Configuration and Management Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3: <strong>ESB</strong> Endpoints <strong>and</strong> Connections<br />

For detailed information on implementing durable subscriptions, see the “Publish <strong>and</strong><br />

Subscribe Messaging” chapter in the <strong>Progress</strong> <strong>Sonic</strong>MQ Application Programming<br />

<strong>Guide</strong>.<br />

The following example illustrates <strong>Sonic</strong> <strong>ESB</strong>’s naming convention for this feature:<br />

● A service named Service1 is deployed in MFContainer1 <strong>and</strong> MFContainer2.<br />

Service1 has:<br />

■ Two listeners in MFContainer1<br />

■ One listener in MFContainer2<br />

● The subscription name is myDurableSub<br />

● The topic that is subscribed to myDurableSub is T1<br />

● These services share a subscription to the topic name [[Service1]]T1 (concurrent<br />

durable subscriptions in <strong>Sonic</strong> <strong>ESB</strong> have shared subscriptions enabled by default)<br />

● The dynamically generated subscription names are:<br />

■ MFContainer1:Service1:1:myDurableSub<br />

■ MFContainer1:Service1:2:myDurableSub<br />

■ MFContainer2:Service1:1:myDurableSub<br />

Three durable subscriptions are created. Distribution to the durable subscriptions is based<br />

on factors including the number of active clients <strong>and</strong> flow control status.<br />

Each listener on a single service accesses the same, shared durable subscription, thus<br />

improving the throughput of a deployed service instance by enabling concurrent message<br />

processing. When a listener is eliminated, its durable subscription is not automatically<br />

eliminated, which causes that durable subscription to remain inactive until the subscriber<br />

returns .<br />

Note In conjunction with the shared subscription functionality, messages for a shared durable<br />

subscription that might be str<strong>and</strong>ed in these now-defunct subscriptions are re-allocated<br />

to whichever shared subscribers are connected, whether durable or nondurable.<br />

There is an advantage to using only durable subscribers in a shared subscription as a<br />

failure of a regular subscriber without acknowledgement of a delivered message has no<br />

mechanism for restarting <strong>and</strong> re-allocating the indoubt message.<br />

94 <strong>Progress</strong> <strong>Sonic</strong> <strong>ESB</strong> <strong>Configuration</strong> <strong>and</strong> <strong>Management</strong> <strong>Guide</strong> <strong>8.0</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!