09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Removing a Subscriber<br />

END;<br />

subscriber => subscriber);<br />

Java (JDBC): Removing a Subscriber<br />

/* Remove a subscriber */<br />

public static void example(AQSession aq_sess) throws AQException<br />

{<br />

AQQueue queue;<br />

AQAgent agent1;<br />

AQAgent agent2;<br />

}<br />

/* Get the queue object */<br />

queue = aq_sess.getQueue("AQ", "multi_queue");<br />

/* add a subscriber */<br />

agent1 = new AQAgent("subscriber1", "aq2.msg_queue2@london");<br />

queue.removeSubscriber(agent1);<br />

9-70 <strong>Oracle</strong>9i Application Developer’s Guide - <strong>Advanced</strong> <strong>Queuing</strong>

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

Saved successfully!

Ooh no, something went wrong!