| Author |
Message
|
| nab054371 |
Posted: Fri May 11, 2007 6:51 am Post subject: |
|
|
Disciple
Joined: 15 Nov 2006 Posts: 173
|
Bruce -
If I were to increase the MAXMSGLENGTH of model queue,then I guess that just defeats the whole purspose of segmentation?
thanks |
|
| Back to top |
|
 |
| bruce2359 |
Posted: Fri May 11, 2007 6:56 am Post subject: |
|
|
Guest
|
| Quote: |
| sorry for the confusion. MQPUT(trying to write to dynamic queue) in the message flow fails with 2030 and my application reading fro this dynamic queue fails with 2033. |
Check the definition of the Queue MODEL (not queue manager), the queue name the application is opening. Does the max msg length say 100meg?
A dynamic queue takes on the attributes of the queue model definition. |
|
| Back to top |
|
 |
| nab054371 |
Posted: Fri May 11, 2007 9:32 am Post subject: |
|
|
Disciple
Joined: 15 Nov 2006 Posts: 173
|
Bruce -
The model queue has MAXMSGLENGTH = 4MB,which matches up with the static queue MQXMSGLENGTH. I am not sure I understand your point, with segmentation on 5.2 MB message,I will end up having two segments on either queues.However doesnt seem like my dynamic queue is able to handle this message!
thanks |
|
| Back to top |
|
 |
| bruce2359 |
Posted: Fri May 11, 2007 10:03 am Post subject: |
|
|
Guest
|
Haven't found any issues with dynamic queues and segmentation yet.
I will attempt to do this - with C or Cobol; no Java at home.
Last edited by bruce2359 on Fri May 11, 2007 2:31 pm; edited 1 time in total |
|
| Back to top |
|
 |
| nab054371 |
Posted: Fri May 11, 2007 10:08 am Post subject: |
|
|
Disciple
Joined: 15 Nov 2006 Posts: 173
|
I have read this documentation earlier,I am using option #2 from the ones you got listed below.
Agreed,that the queue manager will not necessarily split the message consistently at a given byte length,however if both static queue and model queue have the same MAXMSGLENGTH,why would it work for one and not for other.Now it looks like MODEL queue does not have message segmentation option in the queue options,which the static queue does.
Not sure if that has anything to do here?
Yes,I am testing out segmentation and planning to use it in Production,However our application uses dynamic queue and would have liked to get it woking on those queues.For now I got both put and get in one program ,however going forward that would not be the case. |
|
| Back to top |
|
 |
| jefflowrey |
Posted: Fri May 11, 2007 10:15 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Bruce - I really think segmentation should apply regardless of whether or not there is an MQ channel between the sender and the receiver!
But I haven't done it, so... _________________ I am *not* the model of the modern major general. |
|
| Back to top |
|
 |
| bruce2359 |
Posted: Fri May 11, 2007 11:52 am Post subject: |
|
|
Guest
|
There is nothing (I've found so far) about a qmodel definition, or dynamic queue that results from opening the qmodel, that precludes it from storing messages and message segments.
Please post the qmodel definition your applicaiton is opening.
Please post the actual program code that sets the open options, names the queue, and opens the queue.
Please post an image of the segmented message (message descriptor) that was put to your local queue. What is the message size? Please post the qlocal definition used in this test.
Last edited by bruce2359 on Fri May 11, 2007 2:33 pm; edited 1 time in total |
|
| Back to top |
|
 |
| bruce2359 |
Posted: Fri May 11, 2007 1:45 pm Post subject: |
|
|
Guest
|
| I correct myself here (thanks and appologies to Jeff): With segmentation_allowed at put and complete_message at get, the queue manager can segment a message when either the message exceeds max msg length attribute of the qmgr OR the max msg length of the queue. |
|
| Back to top |
|
 |
| nab054371 |
Posted: Mon May 14, 2007 4:04 am Post subject: |
|
|
Disciple
Joined: 15 Nov 2006 Posts: 173
|
| I am not sure what u need when u say "please post qmodel definition".Also my open options match with whats documented. |
|
| Back to top |
|
 |
| bruce2359 |
Posted: Mon May 14, 2007 8:23 am Post subject: |
|
|
Guest
|
| Quote: |
| Looks like MQPUT fails when writing this message to a dynamic queue |
dynamic queue
From your original post you said you are attempting to put a message to a dynamic queue.
An MQ dynamic queue is created at mqopen when the application specifies a qmodel definition instead of a real qlocal definiti |
|
| Back to top |
|
 |
| ashu |
Posted: Mon May 14, 2007 10:03 pm Post subject: |
|
|
 Centurion
Joined: 11 Nov 2006 Posts: 132
|
Could it be the case that the Qmgr can segment only those messages which it understands(like if the message is in Built-in type)...otherwise it puts the responsibility on the sending application to segment the message if the contents are not of built-in type...
Regards, _________________ Ashu
"It is simple to be Happy but difficult to be Simple" |
|
| Back to top |
|
 |
|
|