共用方式為


Target and Source Journaling Examples

 

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

Message Queuing applications can specify source and target journaling. Source journaling allows you to track a message after it is sent. Message Queuing provides positive source journaling and negative source journaling. Target journaling allows you to track messages after they are removed from the queue.

For a discussion on source journaling, see Source Journaling. For a discussion on target journaling, see Target Journaling.

Code Examples

The following examples show how to request source journaling when sending messages, how to enforce target journaling when creating a queue, and how to read messages stored in computer journals and dead-letter queues.

Task Example
Requesting source journaling C/C++ Code Example: Requesting Source Journaling

 Visual Basic Code Example: Requesting Source Journaling
Reading messages in the computer journal C/C++ Code Example: Reading Messages in the Computer Journal

 Visual Basic Code Example: Reading Messages in the Computer Journal
Reading messages in dead-letter queues From the dead-letter queue

 C/C++ Code Example: Reading Messages in the Dead-Letter Queue

 Visual Basic Code Example: Reading Messages in the Dead-Letter Queue

 From the transactional dead-letter queue

 C/C++ Code Example: Reading Messages in the Transactional Dead-Letter Queue

 Visual Basic Code Example: Reading Messages in the Transactional Dead-Letter Queue
Enforcing target journaling C/C++ Code Example: Enforcing Target Journaling

 Visual Basic Code Example: Enforcing Target Journaling
Reading messages in a queue journal C/C++ Code Example: Reading Messages in a Queue Journal

 Visual Basic Code Example: Reading Messages in a Queue Journal