Author |
Message
|
mathilda |
Posted: Wed Dec 02, 2009 4:07 am Post subject: WebSphere MQ v7.0 Publish/Subscribe segmented messages |
|
|
 Novice
Joined: 16 May 2007 Posts: 16 Location: Sofia, Bulgaria
|
In WebSphere MQ v6.0 documentation have a limitation of using grouping and message segmentation:
Quote: |
Segmented messages are not supported by WebSphere MQ Publish/Subscribe. If a segmented message is sent to the broker, it is rejected as not valid. |
But i don't find anything about this limitation in v7.0 documentation.
I tested to send message ( 2 segments) , but i received 2 normal messages.
Is this limitation are actual for WebSphere MQ v7.0?
Regards _________________ On any given Sunday you're gonna win or you're gonna lose. The point is
- can you win or lose like a man? |
|
Back to top |
|
 |
mvic |
Posted: Wed Dec 02, 2009 5:57 am Post subject: Re: WebSphere MQ v7.0 Publish/Subscribe segmented messages |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
mathilda wrote: |
Is this limitation are actual for WebSphere MQ v7.0?
Regards |
I would expect it to work. Can you tell us more about the test please, and what fix pack you have installed? |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Dec 02, 2009 6:24 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
I tested to send message ( 2 segments) |
How exactly did you send two segmented messages? For example, did you set the appropriate message flags in the MQMD?
Quote: |
but i received 2 normal messages. |
What exactly do you mean by normal messages? How did you determine that these messages were norma? ...as opposed to abnormal? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
mathilda |
Posted: Wed Dec 02, 2009 6:35 am Post subject: |
|
|
 Novice
Joined: 16 May 2007 Posts: 16 Location: Sofia, Bulgaria
|
Version of WebSphere MQ is 7.0.1.0 (this is original installation without installed any refresh pack).
I saw that last refresh pack is 7.0.1.0 - i.e. refresh pack is here.
I send with JMS to Queue with segmentation and revived message is OK.
But when i write same code but for Topic ( publish\subscribe) my listener received 2 messages for example without gorupID.
Regards _________________ On any given Sunday you're gonna win or you're gonna lose. The point is
- can you win or lose like a man? |
|
Back to top |
|
 |
mathilda |
Posted: Wed Dec 02, 2009 6:49 am Post subject: |
|
|
 Novice
Joined: 16 May 2007 Posts: 16 Location: Sofia, Bulgaria
|
bruce2359 :
i send 1 message who is split to 2 segments.
For example when i send to queue - i expect to see in MQ Explorer 2 messages.
About normal messages - i expect to receive messages with gorupId, but i received without groupId and i process exery message as "normal" ( single message that is not part from group)
I use WebSphere MQ classes for JMS.
Regards _________________ On any given Sunday you're gonna win or you're gonna lose. The point is
- can you win or lose like a man? |
|
Back to top |
|
 |
mvic |
Posted: Wed Dec 02, 2009 6:55 am Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
mathilda wrote: |
I send with JMS to Queue with segmentation |
Please would you post some sample source code to show what calls the app made?
Quote: |
But when i write same code but for Topic ( publish\subscribe) my listener received 2 messages for example without gorupID. |
Again sample source code would help. Also sample code showing the method you use to get the messages would help. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Dec 02, 2009 9:44 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
I expect that if JMS allows now segmentation in V7 it may, in this first phase, only be outbound...
Typically you'd have to set some flags to "logically" reassemble a segmented message before receiving it. Did you look up the V7 manual to check how to do this in JMS?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Dec 03, 2009 6:16 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
I send 1 message who is split to 2 segments.
For example when i send to queue - i expect to see in MQ Explorer 2 messages. |
I asked exactly how you created segmented messages. Your response wasn't technically specific enough for me to understand how you did this, only that you intended to do this. How did you split the messages? How did you put them to the queue?
Message segmentation is explained in the WMQ Application Programming Reference and WMQ Application Programming Guide. There are fields in the MQMD (message descriptor) that must be correctly set to create an MQ segmented message. If your application just split the application data into two messages, this is not MQ message segmentation.
Please post the application source code that you used to create the messages.
Please display both of the messages as they exist in the queue. We will need to see the MQMD of each message to determine if your app actually created MQ segmented messages. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
|