09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Purpose<br />

Grant a queue privilege in the point-to-point model<br />

Granting Queue Privileges—Point-to-Point<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 queue.<br />

Syntax<br />

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

AQjmsDestination.grantQueuePrivilege<br />

Example<br />

QueueSession q_sess;<br />

Queue queue;<br />

((AQjmsDestination)queue).grantQueuePrivilege(q_sess, "ENQUEUE", "scott",<br />

false);<br />

JMS Administrative Interface: Basic Operations 13-47

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

Saved successfully!

Ooh no, something went wrong!