|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Java Publisher with V.B Subscriber |
« View previous topic :: View next topic » |
Author |
Message
|
abiram8 |
Posted: Sat Mar 30, 2002 11:29 pm Post subject: |
|
|
 Master
Joined: 27 Mar 2002 Posts: 207 Location: India
|
Hi,
Iam trying With MQ Series + MQSI (Publish-Subscribe) Where my Publisher is Java & My Subscriber is V.B
How To set the MQRFH2 Headers (Structure ) for the V.B Subscriber If Any one worked on it let
me know
Thanks R.Abiram
|
|
Back to top |
|
 |
MillsPerry |
Posted: Wed Apr 03, 2002 2:41 pm Post subject: |
|
|
 Acolyte
Joined: 08 Oct 2001 Posts: 59 Location: ZyQuest, inc.
|
... very carefully, since strings containing binary zeros tend to break easily.
A couple of tips.
1. Use the Win32 API. MQAX200 tends to corrupt some of the
numeric fields within the RFH2 header.
2. When specifying lengths and setting positions, remember to
pad the header to a 4 byte boundary, and also the 'psc'
command.
3. Create an RFH2 UDT, fill in the fields, and then use the
CopyMemory API call to copy the structure to a byte array.
Then build the message buffer from that array a byte at a
time. This sounds like a hassle, but it's the only thing
that's worked for me.
Let me know if you need more info.
Mills Perry |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|