Combining the subscriber options
We can combine the subscriber variations, so that we can create a durable subscriber that applies a selector and ignores local publications. The following code fragment shows the use of the combined options:
// Create a durable, noLocal subscriber with a selector applied String selector = "company = 'IBM'"; TopicSubscriber sub = session.createDurableSubscriber( topic, "D_SUB_000001", selector, true );
uj24820_