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 » IBM MQ API Support » How to get the specifically Message from the MQ

Post new topic  Reply to topic
 How to get the specifically Message from the MQ « View previous topic :: View next topic » 
Author Message
ellion
PostPosted: Fri Feb 10, 2006 12:10 am    Post subject: How to get the specifically Message from the MQ Reply with quote

Newbie

Joined: 09 Feb 2006
Posts: 7

I have a problem!
i'm a new one for MQ!

for example:
there are 5 messages
1.11111111111111
2.22222222222222
3.33333333333333
4.44444444444444
5.55555555555555

now hou can i get the message which is conatin the string "3333"

my Develop's ENV. is WINDOWS2000 PRO VB6.0
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Fri Feb 10, 2006 12:20 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

is this a homework question? you should start reading some manuals and testing some samples.
_________________
Regards, Butcher
Back to top
View user's profile Send private message
ellion
PostPosted: Fri Feb 10, 2006 12:49 am    Post subject: Reply with quote

Newbie

Joined: 09 Feb 2006
Posts: 7

Not a homework!

but next monday must be OK!

i just can browse and get message by order
but can't get the particular Message


Please Help me !
Thank very much

if you have sample code for this Question
please send to mail
ellion@nbcmo.com.cn

Thanks very much!
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Fri Feb 10, 2006 1:05 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

must be finished monday? so this is a weekend-homework question?

anyway, the answer to your question is in the programmers reference and programmers guide, check the browse and especially the get message options.

good luck!
_________________
Regards, Butcher
Back to top
View user's profile Send private message
ellion
PostPosted: Fri Feb 10, 2006 1:16 am    Post subject: Reply with quote

Newbie

Joined: 09 Feb 2006
Posts: 7

Please don't say that !
there are many document for MQ
but i can't ccomprehend them well!

so i give out SOS here !

my master please help me !
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Fri Feb 10, 2006 1:26 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

don't panic. i told you to read 2 documents, and i also told you what sections to read in detail. so what is the problem?

the way you are trying to solve your problem looks somehow "lazy" to me.
please notice, that there are many people here that are willing to offer help to others that TRY HARD to solve their problems, but they will not give help to people that refuse to read the manuals to build some own knowledge to understand what they need to do.
_________________
Regards, Butcher
Back to top
View user's profile Send private message
wschutz
PostPosted: Fri Feb 10, 2006 3:43 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Mr. Butcher is correct, you must read the documents. Some other resources that might help are the MQ Primer redbook:

http://www.mqseries.net/phpBB2/viewtopic.php?t=26621&highlight=primer


and MQ sample code:
http://www-304.ibm.com/jct09002c/isv/tech/sampmq.html


_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
JT
PostPosted: Fri Feb 10, 2006 7:39 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

............and if you have the MQ Client installed on your desktop, check out the VB sample code located at:

<install-dir>\Tools\VB\sampVB6
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Feb 10, 2006 7:54 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

What will you do if you find out you can't do this?

How will you solve your real problem, if you can't solve it by having random access to messages on the queue?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Fri Feb 10, 2006 11:31 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

if he does not understand the documentation, he may also not understand the problem .....
_________________
Regards, Butcher
Back to top
View user's profile Send private message
ellion
PostPosted: Fri Feb 10, 2006 4:00 pm    Post subject: Reply with quote

Newbie

Joined: 09 Feb 2006
Posts: 7

I'm sure that i'm a Lazy bug
Thanks for all help
i'll slove it by myself!
Back to top
View user's profile Send private message
JT
PostPosted: Fri Feb 10, 2006 4:04 pm    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

In the long run, that's probably best.
Back to top
View user's profile Send private message
ellion
PostPosted: Fri Feb 10, 2006 8:42 pm    Post subject: Reply with quote

Newbie

Joined: 09 Feb 2006
Posts: 7

Q1: When MQGETCALL1 get the message from the MQ
and now ,how can I get the meeageID
Q2: if i get the MessageID and how can I user the mssageID
to get the specifically

the fuction as follow
'---------------------------------------------------------------

Function MQGETCall1(ByVal Message As String, ByVal strReplytoQ As String, ByVal strReplyToQmgr As String) As String
'for get message
Dim objGetMsgOpt As MQGMO
Dim objMsgDesc As MQMD
Dim strGetMSG As String

objMsgDesc = MQMD_DEFAULT
objGetMsgOpt = MQGMO_DEFAULT

strGetMSG = strGetMSG & Space(1000)
MQGET m_lngConnectionHandle, m_lngObjectHandle, objMsgDesc, objGetMsgOpt, _
Len(strGetMSG), strGetMSG, m_lngMsgLen, m_lngCompletionCode, m_lngReasonCode

If m_lngCompletionCode <> MQCC_OK Then
MQGETCall1 = m_lngCompletionCode
Else
Message = strGetMSG
ReplyToQ = objMsgDesc.ReplyToQ
ReplyToQmgr = objMsgDesc.ReplyToQmgr

End If
MQGETCall1 = Message
End Function
Back to top
View user's profile Send private message
JT
PostPosted: Fri Feb 10, 2006 11:05 pm    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Quote:
Q1: When MQGETCALL1 get the message from the MQ
and now ,how can I get the meeageID

The msgId is located in the Message Descriptor header (MQMD).

Quote:
Q2: if i get the MessageID and how can I user the mssageID
to get the specifically

By using the match option MQMO_MATCH_MSG_ID on the MQGET call.

Are you attempting to use the msgId of the message read from the queue, to retrieve another msg? I ask because it's somewhat difficult to decipher your intentions. Perhaps you can elaborate in detail.
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 » IBM MQ API Support » How to get the specifically Message from the MQ
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.