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 » WAS 6.0 Default Messaging Provider - JMS Message Truncated

Post new topic  Reply to topic
 WAS 6.0 Default Messaging Provider - JMS Message Truncated « View previous topic :: View next topic » 
Author Message
vmurali_au
PostPosted: Mon Jul 24, 2006 10:38 am    Post subject: WAS 6.0 Default Messaging Provider - JMS Message Truncated Reply with quote

Voyager

Joined: 26 Mar 2004
Posts: 76

Using a MQ Client application, I'm sending a JMS Object Message (with serializable fields) to a remote definition queue "QR" in Queue Manager "QM1". I'm using "FSContext" JNDI to locate the queue and send the JMS message.

In the WAS 6.0 i've defined the Websphere MQ links, Foreign Bus etc. The Remote Queue definition "QR" in "QM1" points to a destination "dest1" in the Service Integration Bus (SIB).

I've also defined the JMS Activation Specification on the destination "dest1" and using that activation settings a Message Driven Bean (MDB) listens to the JMS object message.

The problem is the MDB is able to receive messages, but not the full message. I'm getting the error during deserializing the object in MDB. I've checked the message in the destination "dest1" in WAS using Admin Console. There is only the truncated message.

Instead, when i use a servlet to post the MQ message directly to the destination "dest1" i'm getting the full message in MDB.

But as in the original setup when the message is sent via Websphere MQ link to WAS, it gets truncated.

I've also tried JMS TextMessage instead of ObjectMessage still the message is getting truncated.


Any help on the above problem will be really appreciated.

Thanks.

P.S
I'm using WAS 6.0.0.0 test environment available in RAD 6.0 for the above testing
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 24, 2006 1:55 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Looks like you will need to run some tests here.
  1. Make sure there is no channel exits on any of the sender/receiver channels
  2. Set your MQ Queue to be local.
    Can you deserialize correctly
  3. Have your MQQueue be remote again
    but change the persistancy of the message
    Does it affect message size and or deserialization?
  4. Raise PMR ?


Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
vmurali_au
PostPosted: Tue Aug 08, 2006 6:57 am    Post subject: Reply with quote

Voyager

Joined: 26 Mar 2004
Posts: 76

Thanks.

I've tried changing the MQ Queue to be local and tried to deserialize the message. I'm getting the full message here. No problems.

When my message goes via the Websphere MQ Link to WAS then only the truncation happens. I viewed the message in the Queue in the SIB in WAS and found only the truncated message. So there is no problem with my MDB.

I dont know how the persistency of the message will affect the truncation.

Also, i havent raised a PMR. I want to make sure i'm not doing anything wrong on my side first before raising the PMR. The WAS 6.0 i'm using is the Integrated Test Environment available in RAD 6.0.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Aug 08, 2006 7:08 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

What happens when you send an object message between two MQ queue managers?

I.e. - try to isolate the problem to the MQ Bridge itself.

Also, is it possible that your full message is larger than 4Mb? If so, you might be seeing truncation occur because of the client channel.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
vmurali_au
PostPosted: Tue Aug 08, 2006 7:16 am    Post subject: Reply with quote

Voyager

Joined: 26 Mar 2004
Posts: 76

I tried both ObjectMessage and TextMessages. Both are having the truncation problem.

My serialized message is not more than 4MB. It contains just some JavaBean object. When i tried the local Queue approach i didnt get a message over 4MB.

Also I wrote a servlet and tried putting the Object message directly in the Queue in the SIB (without using Websphere MQ link). Now i got the full message. So there is no problem with the maximum message size setting in the SIB Queue. So my assumption is by some how when the message goes through the Websphere MQ link it is getting truncated.

Are there any specific settings that should be made in the Websphere MQ link?
Back to top
View user's profile Send private message
mvic
PostPosted: Tue Aug 08, 2006 7:27 am    Post subject: Re: WAS 6.0 Default Messaging Provider - JMS Message Truncat Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

vmurali_au wrote:
I'm using WAS 6.0.0.0 test environment available in RAD 6.0 for the above testing

Any chance you could use newer code: my understanding is that there have been some important updates since 6.0.0.0. I could be wrong, though.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Aug 08, 2006 7:28 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

There is a MaxMsgLn parameter on the MQ Link definition...
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.pmc.doc/sibresources/SIBMQLink_DetailForm.html
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » WAS 6.0 Default Messaging Provider - JMS Message Truncated
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.