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 » MQ browse pgm in java

Post new topic  Reply to topic
 MQ browse pgm in java « View previous topic :: View next topic » 
Author Message
vanilla
PostPosted: Thu Feb 02, 2006 5:23 am    Post subject: MQ browse pgm in java Reply with quote

Newbie

Joined: 19 Jan 2006
Posts: 4

I need the hints to write the pgm for MQ Browse. Or suggest me the url which may help me. Thank You.
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Thu Feb 02, 2006 5:28 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

open editor
write program
save program
close editor
execute program

you may also want to read some documentation.
_________________
Regards, Butcher
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Thu Feb 02, 2006 5:35 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

On the top of this screen, click the "repository" button.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
mvic
PostPosted: Thu Feb 02, 2006 5:52 am    Post subject: Re: MQ browse pgm in java Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

vanilla wrote:
I need the hints to write the pgm for MQ Browse. Or suggest me the url which may help me. Thank You.

MQ has a suite of manuals. One of them is the Application Programming Guide. Look at the 'documentation' link/menu at the top of this page.
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Feb 02, 2006 5:59 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

MQCONN qm
MQOPEN queue MQOO_BROWSE
MQGET queue MQGMO_BROWSE_NEXT + MQGMO_CONVERT
(store message data and repeat until NO_MSG_AVAILABLE)
MQCLOSE queue
MQDISC qm
Back to top
View user's profile Send private message
mvic
PostPosted: Thu Feb 02, 2006 6:04 am    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

Actually no-one has mentioned the sample programs yet so I shall do that. There is a sample program that browses messages on a queue. The samples are included in installations of MQ - and are documented. Look for the sample program amqsbcg.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Feb 02, 2006 6:35 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You shouldn't browse messages, unless you're building a message viewer/editor.

And there are already such wonderful message viewer/editors out there (right, Roger?), that it seems unnecessary to write another one.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
clindsey
PostPosted: Thu Feb 02, 2006 8:49 am    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

Since you posted this question on the java forum, I assume you want to write your code in java.

Go to http://www-304.ibm.com/jct09002c/isv/tech/sampmq.html
Search for amqsbcg. There is a java version of the amqsbcg that mvic recommended.

Charlie
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Feb 02, 2006 9:07 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

There is one in the forum too.
http://www.mqseries.net/phpBB2/viewtopic.php?t=8288&highlight=mqbrowse
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » MQ browse pgm in java
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.