InitQueue

<< Click to Display Table of Contents >>

Navigation:  EasyDotNet documentation > Classes > TMessageQueue class > Methods >

InitQueue

Previous pageReturn to chapter overviewNext page

Initializes a new instance of the MessageQueue class that references the Message Queuing queue at the specified path.

 

qPath -

The path of the queue to create.

The syntax of the path parameter depends on the type of queue it references:

Public queue: MachineName\QueueName

Private queue: MachineName\Private$\QueueName

Journal queue: MachineName\QueueName\Journal$

Machine journal queue: MachineName\Journal$

Machine dead-letter queue: MachineName\Deadletter$

Machine transactional dead-letter queue: MachineName\XactDeadletter$

Alternatively, you can use the FormatName or Label to describe the queue path:

FormatName:Public= 5A5F7535-AE9A-41d4-935C-845C2AFF7112

FormatName:DIRECT=SPX:NetworkNumber; HostNumber\QueueName

FormatName:DIRECT=TCP:IPAddress\QueueName

FormatName:DIRECT=OS:MachineName\QueueName

Label: TheLabel

To work offline, you must use the format name syntax, not the path name syntax.

 

InitQueue                       PROCEDURE(STRING qPath), BOOL, PROC