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 » setting message id issue in Visual Basic Program

Post new topic  Reply to topic
 setting message id issue in Visual Basic Program « View previous topic :: View next topic » 
Author Message
vids
PostPosted: Wed Aug 13, 2003 8:34 am    Post subject: setting message id issue in Visual Basic Program Reply with quote

Acolyte

Joined: 24 Mar 2003
Posts: 68
Location: CA, USA

Hi all,

I have two Visual Basic programs, First program will pull the message
from the request queue and updates the sqlServer Database (table1).

Once the table1 is updated, there is another application which pulls the data from the table1 and processes the data and puts the response to the table2.

Now my 2nd VB program should pull the record from the table2 and put the message to the response queue. While putting the message to the response queue, it has to set the message id to same as that of the message id pulled from the request message from request queue.

Since these 2 VB program are running independently, I'm planning to store the message id of the request message in table1 and then the 2nd VB program can pull the message id from the table and set the same message id to the response message.

Since the message id is in Hex ....My question is how to store the message id???

I declared a string variable and stored the messageid in that.

**********************************
1st VB program has

Dim Msgid As String
Msgid = GetMsg.MessageIdHex ( where GetMsg is the MQMessage object)

If I store the Msgid in database and then in the 2nd VB program if I pull this value and set is as

PutMsg.MessageIdHex = Msgid

will this work fine???

I'm very new to Visual basic and I'm using a sample programs available in Tools\mqax\Samples\VB dir.

For testing this scenario....I have a single VB program which pulls the message from the request queue , stores the Message id in a String variable, puts the response message to response queue after setting the message id as explained above.

Before running this Vb program, I checked the message id of the request message in the explorer and after running the Vb program....I checked the message id of the response message and both look the same.

But When I run this program with another requesting application,
{which actually puts the request message and waits for the response message and then pulls the response message after matching with the message id}
it does not pull the message which is put by my 2nd VB program.

Looks like that application is not finding the message with the same message id.
I feel I have not set the message id in a right way. Can any one help me out in solving this issue??? I really appreciate your input.

Thanks in Advance....
Vij
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 » setting message id issue in Visual Basic Program
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.