Author |
Message
|
vanilla |
Posted: Thu Feb 02, 2006 5:23 am Post subject: MQ browse pgm in java |
|
|
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 |
|
 |
Mr Butcher |
Posted: Thu Feb 02, 2006 5:28 am Post subject: |
|
|
 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 |
|
 |
PeterPotkay |
Posted: Thu Feb 02, 2006 5:35 am Post subject: |
|
|
 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 |
|
 |
mvic |
Posted: Thu Feb 02, 2006 5:52 am Post subject: Re: MQ browse pgm in java |
|
|
 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 |
|
 |
zpat |
Posted: Thu Feb 02, 2006 5:59 am Post subject: |
|
|
 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 |
|
 |
mvic |
Posted: Thu Feb 02, 2006 6:04 am Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Thu Feb 02, 2006 6:35 am Post subject: |
|
|
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 |
|
 |
clindsey |
Posted: Thu Feb 02, 2006 8:49 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
|
Back to top |
|
 |
vennela |
Posted: Thu Feb 02, 2006 9:07 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
|
Back to top |
|
 |
|