Suppressing local publications
We can create a subscriber that ignores publications that are published on the subscriber's own connection. Set the third parameter of the createSubscriber call to true, as follows:
// Create a non-durable subscriber with the noLocal option set TopicSubscriber sub = session.createSubscriber( topic, null, true );
uj24810_