Share via


Requesting Target Journaling (COM)

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Target journaling is requested by setting the journaling level (MSMQQueueInfo.Journal) of the queue. You can set the journaling level of the queue when you create the queue or later.

To request target journaling

  1. Declare the MSMQQueueInfo variable for the queue.

  2. Create a new MSMQQueueInfo object and assign it to the variable.

  3. Specify the pathname of the queue.

    Note

    For Message Queuing servers and independent clients, the local machine is the local computer. However, for Message Queuing–dependent clients, the local machine is the client's Message Queuing server.

  4. Set MSMQQueueInfo.Journal to MQ_JOURNAL.

  5. (Optional) Add additional queue properties you need.

  6. Call MSMQQueueInfo.Create to create the queue.

See Also

Concepts

MSMQ COM Support
Using the COM Components
MSMQ Security

Other Resources

Message Queuing