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.

The Internet Data Access Presentation (IDAP)<br />

Table 17–1 Client Requests for Enqueue—Arguments and Attributes for AQXmlSend and AQXmlPublish<br />

Argument Attribute<br />

- expiration—duration in seconds that a message is available for dequeuing.<br />

This parameter is an offset from the delay. By default messages never expire.<br />

If the message is not dequeued before it expires, then it is moved to the exception<br />

queue in the EXPIRED state<br />

- delay—duration in seconds after which a message is available for processing<br />

- priority—the priority of the message. A smaller number indicates higher<br />

priority. The priority can be any number, including negative numbers.<br />

- sender_id—the application-specified identifier<br />

agent_name, address, protocol<br />

agent_alias—if specified, resolves to a name, address, protocol using<br />

<br />

LDAP<br />

- recipient_list—list of recipients; overrides the default subscriber list. Each<br />

recipient consists of:<br />

agent_name, address, protocol<br />

<br />

agent_alias—if specified, resolves to a name, address, protocol using<br />

<br />

LDAP<br />

- message_state— state of the message is filled in automatically during dequeue<br />

0: The message is ready to be processed.<br />

1: The message delay has not yet been reached.<br />

2: The message has been processed and is retained.<br />

3: The message has been moved to the exception queue.<br />

- exception_queue—in case of exceptions the name of the queue to which the<br />

message is moved if it cannot be processed successfully. Messages are moved in<br />

two cases: The number of unsuccessful dequeue attempts has exceeded max_<br />

retries or the message has expired. All messages in the exception queue are in<br />

the EXPIRED state.<br />

The default is the exception queue associated with the queue table. If the<br />

exception queue specified does not exist at the time of the move, then the message<br />

is moved to the default exception queue associated with the queue table, and a<br />

warning is logged in the alert file. If the default exception queue is used, then the<br />

parameter returns a NULL value at dequeue time.<br />

message_payload this can have different sub-elements based on the payload type of the destination<br />

queue/topic. The different payload types are described in the next section<br />

AQXmlCommit this is an empty element—if specified, the user transaction is committed at the end<br />

of the request<br />

17-8 <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!