Author |
Message
|
digulla |
Posted: Thu Mar 10, 2005 7:37 am Post subject: What is MQMsg2? |
|
|
Novice
Joined: 07 Mar 2005 Posts: 10
|
Hello,
The Java libraries from IBM offers an "MQMsg2" and getMsg2*() methods to get such messages.
Where can I find documentation for this message type and the GET methods?
Thanks, _________________ Aaron Digulla |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Mar 10, 2005 8:57 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I would have said that these are internal to the WMQ java and that you shouldn't be using them. Where exactly did you see them? |
|
Back to top |
|
 |
digulla |
Posted: Thu Mar 10, 2005 9:28 am Post subject: |
|
|
Novice
Joined: 07 Mar 2005 Posts: 10
|
I found a couple of functions named getMsg2() in com.ibm.mq.MQQueue and I was curious what they did. They take a MQMsg2 as parameter and are quite similar to get(), otherwise.
What I was wondering about was the MQMsg2, though. They have methods to get at the raw byte array where the data is stored (as opposed to MQMessage where everything is hidden). I was hoping that these classes wouldn't copy the raw data around unnecessarily: MQMessage creates a new byte array for each new message and then copies it instead of reusing the existing buffers. This way, when you have an 80MB message, you need at least 320 or even 400MB (if you want to process the contents) of RAM for all the copies which the MQ library makes  _________________ Aaron Digulla |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 10, 2005 9:33 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
bower5932 wrote: |
these are internal to the WMQ java and that you shouldn't be using them |
_________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
malammik |
Posted: Thu Mar 10, 2005 12:51 pm Post subject: |
|
|
 Partisan
Joined: 27 Jan 2005 Posts: 397 Location: Philadelphia, PA
|
It looks like that getMsg2 method is taking an additional integer parameter but since it is not documented, I would not use it. It is also not called from any of the existing methods as far as I can see, so it must be part of some new functionality. _________________ Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex |
|
Back to top |
|
 |
malammik |
Posted: Thu Mar 10, 2005 12:54 pm Post subject: |
|
|
 Partisan
Joined: 27 Jan 2005 Posts: 397 Location: Philadelphia, PA
|
|
Back to top |
|
 |
bower5932 |
Posted: Thu Mar 10, 2005 2:07 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
malammik wrote: |
Any Java IDE with method completion will expose the method. You can also decompile class files to see what the api is doing under the hood. |
Actually what I was trying to imply was that it is internal to WMQ. It isn't published and unless you see it published, you shouldn't plan on using it. |
|
Back to top |
|
 |
malammik |
Posted: Thu Mar 10, 2005 5:50 pm Post subject: |
|
|
 Partisan
Joined: 27 Jan 2005 Posts: 397 Location: Philadelphia, PA
|
|
Back to top |
|
 |
|