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.

Purpose<br />

Grant a topic privilege in the publish-subscribe model.<br />

Granting Topic Privileges—Publish-Subscribe<br />

Usage Notes<br />

The privileges are ENQUEUE, DEQUEUE and ALL. ALL means both. Initially only the<br />

queue table owner can use this procedure to grant privileges on the topic.<br />

Syntax<br />

See Java (JDBC): <strong>Oracle</strong>9i Supplied Java Packages Reference oracle.jms,<br />

AQjmsDestination.grantTopicPrivilege<br />

Example<br />

TopicSession t_sess;<br />

Topic topic;<br />

((AQjmsDestination)topic).grantTopicPrivilege(t_sess, "ENQUEUE", "scott",<br />

false);<br />

JMS Administrative Interface: Basic Operations 13-43

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

Saved successfully!

Ooh no, something went wrong!