ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » Get all messages from QUEUE?

Post new topic  Reply to topic
 Get all messages from QUEUE? « View previous topic :: View next topic » 
Author Message
Nroblex
PostPosted: Thu Apr 24, 2008 3:41 am    Post subject: Get all messages from QUEUE? Reply with quote

Novice

Joined: 15 Apr 2008
Posts: 11

Hello profs!

As a newbie I wonder how to get all messages from the MQQueue. I know the queuename, queuemanager etc.

I am writing an applicaion in C# and I use the client to connect to a IBM MQ server, and on this server there will be XML-files for me to get.

I Would like to get all the messages from the queue, how do I do that?

Many Thanks in Advance

//Nroblex
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Apr 24, 2008 3:45 am    Post subject: Re: Get all messages from QUEUE? Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Nroblex wrote:
I am writing an applicaion in C# and I use the client to connect to a IBM MQ server, and on this server there will be XML-files for me to get.


No there won't - there will be messages, which may or may not contain XML documents.

Nroblex wrote:
I Would like to get all the messages from the queue, how do I do that?


Keep reading the queue until you've got them all.

Any of the sample code or the APG will get you started on this.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 24, 2008 3:46 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Yes.

You write an application.

It uses the client to connect to IBM MQ Server.

It uses the client to open a queue.

It uses the client to get the messages.

It closes the queue.

As a newbie, you are of course spending most of your time reading the documentation.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Get all messages from QUEUE?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.