ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » What is MQMsg2?

Post new topic  Reply to topic
 What is MQMsg2? « View previous topic :: View next topic » 
Author Message
digulla
PostPosted: Thu Mar 10, 2005 7:37 am    Post subject: What is MQMsg2? Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Thu Mar 10, 2005 8:57 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
digulla
PostPosted: Thu Mar 10, 2005 9:28 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Mar 10, 2005 9:33 am    Post subject: Reply with quote

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
View user's profile Send private message
malammik
PostPosted: Thu Mar 10, 2005 12:51 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
malammik
PostPosted: Thu Mar 10, 2005 12:54 pm    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

bower5932 wrote:
Where exactly did you see them?

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.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
bower5932
PostPosted: Thu Mar 10, 2005 2:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
malammik
PostPosted: Thu Mar 10, 2005 5:50 pm    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

Even if I wanted to use it, I dont know what the heck it's for.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » What is MQMsg2?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.