Copying the specified number of messages in Queues

Discussion in 'Software' started by VijayGoparaju, Sep 1, 2008.

  1. VijayGoparaju

    VijayGoparaju

    Joined:
    Aug 26, 2008
    Messages:
    4
    Hi All,
    I want to Copy a specified number of messages from Source Queue to Destination Queue, and i have opened the first Queue as:
    queue = queueManager.AccessQueue(txtQueue1.Text, MQC.MQOO_INQUIRE | MQC.MQOO_FAIL_IF_QUIESCING | MQC.MQOO_BROWSE );
    and Second Queue as:
    queue = queueManager.AccessQueue(txtQueue2.Text, MQC.MQOO_OUTPUT | MQC.MQOO_FAIL_IF_QUIESCING );
    I have used:
    queueMessage.MessageId = MQC.MQMI_NONE;
    queueMessage.CorrelationId =MQC.MQCI_NONE;
    queueGetMessageOptions.Options = MQC.MQGMO_MSG_UNDER_CURSOR; queue.Get(queueMessage, queueGetMessageOptions);
    But I am getting only First message repeting but not getting the Remaining messages.I think the Cursor has struck at first message please tell me how to move the Cursor Postion to next record and process all messages.
    Thanks,
    Vijay.
     
    VijayGoparaju, Sep 1, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?bWFyayBqLg==?=

    max number of print queues

    =?Utf-8?B?bWFyayBqLg==?=, Sep 23, 2004, in forum: Microsoft Certification
    Replies:
    2
    Views:
    649
    =?Utf-8?B?bWFyayBqLg==?=
    Sep 24, 2004
  2. what@meworry.com

    egress queues on 6500

    what@meworry.com, Aug 6, 2004, in forum: Cisco
    Replies:
    0
    Views:
    717
    what@meworry.com
    Aug 6, 2004
  3. =?Utf-8?B?c2hhb2xpbmRy?=
    Replies:
    1
    Views:
    1,049
  4. opensource

    QOS drops in LLQ/CBWFQ queues

    opensource, May 5, 2006, in forum: Cisco
    Replies:
    4
    Views:
    6,760
    lueckenhoff
    May 27, 2006
  5. Reilly
    Replies:
    11
    Views:
    2,517
    Reilly
    Apr 9, 2007
Loading...

Share This Page