|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Reference message segmentation |
« View previous topic :: View next topic » |
Author |
Message
|
yaakovd_new |
Posted: Tue May 04, 2004 10:58 pm Post subject: Reference message segmentation |
|
|
Apprentice
Joined: 03 Feb 2004 Posts: 25 Location: Israel
|
Hi all.
During file transfer using MQ reference message (from file system QM1 to queue on QM2) I've got the file spleeted to 32K messages on destination queue.
I've run an example (amqsprm).
Other way - creation of MQ reference message in MQSI message flow.
The question is - how I can increase the curent buffer size (32K) and what is the limit on NT and AIX platforms?
Is that default value defined in System variables? _________________ _________________
Best regards.
Yaakov Dolgov
E-Business Solutions Consultant
IBM Global Services, Israel
preiger.yaakov@il.ibm.com |
|
Back to top |
|
 |
mqonnet |
Posted: Mon May 10, 2004 11:52 am Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
Not sure if i am late to respond to. But why do you need to split a file to send it accrss using reference messages.
The purpose of reference message itself is to make the transfer of message/file from one location to the other "without" actually putting/getting it onto the queues/channels. And that would mean, as an app programmer and from MQ perspective, you dont really need to break/assemble it.
So, my question is, why did you split the file when using reference messaging.
Ps: I havent done reference messaging in a long time, but i believe my understanding is still correct.
Cheers
Kumar _________________ IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator |
|
Back to top |
|
 |
yaakovd_new |
Posted: Tue May 11, 2004 5:26 am Post subject: |
|
|
Apprentice
Joined: 03 Feb 2004 Posts: 25 Location: Israel
|
Thanks for yor reply. You are not late
Actually, I did nothing to spleet the message...
In my case I have some local queue as destination of file (and not other file location as usualy). So, I generate the reference message and send in across the QMgr-s. When I remove the exit parameters from receiver channel, all message are accumulate in destination queue.
But I expecting to have my message (data from file) on destination queue in one piece and not spleeted to 32K portions...
My guess it happend when I transfer file to file also, but here it is MQ responsibility to write all pieces in one file.
Thanks... _________________ _________________
Best regards.
Yaakov Dolgov
E-Business Solutions Consultant
IBM Global Services, Israel
preiger.yaakov@il.ibm.com |
|
Back to top |
|
 |
mqonnet |
Posted: Wed May 12, 2004 10:30 am Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
yaakovd, the little that i know about reference messages, i believe this is how it should work.
You have a file on box A. You want this file to transfer it to box B. You then write an app or may be use one of the samples as in your case, amqsprm to put a message on a destination queue on box B with mqrmh header giving the details of where the source file is and where it would be copied to destination file. So, all in all, i would expect only ONE message which is giving all the details of the file to be transferred.
Now you run another sample app that does the get.
So, in this whole set up i am not sure where is the splitting coming into picture. Also i see you mentioning "exit" param on receiver channel. I believe you are trying the to set up and run the sample app the way it is explained in the manuals. I havent tried it and hence cannot say where you are going wrong. But i would believe if you follow the steps you should be able to get this thing going.
Good luck.
Cheers
Kumar _________________ IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator |
|
Back to top |
|
 |
leongor |
Posted: Thu May 13, 2004 12:31 am Post subject: |
|
|
 Master
Joined: 13 May 2002 Posts: 264 Location: Israel
|
The problem with reference message, that it's a message exit.
So it works as a usual message exit, but needs to increase the message size with the file attachment.
The buffer it gets from Sender MCA is 32K. Because of this the exit splits the result message to 32K parts and set offset inside MQRMH accordingly.
It works like real MQ segments except it's managed with MQRMH not MQMD.
When using reference message exit on both sides you don't see this
because the receive exit construct the whole message back and detach it to file.
The problem is that Yaakov doesn't want to detach it, but accept the whole message from queue.
If someone knows MQ internal parameter for increasing MCA buffer size ( not relevant to maximum message length ) then it will be helpful. _________________ Regards.
Leonid.
IBM Certified MQSeries Specialist. |
|
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
|
|
|
|