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 » How to send a zip file through MQ JMS

Post new topic  Reply to topic
 How to send a zip file through MQ JMS « View previous topic :: View next topic » 
Author Message
rsinha
PostPosted: Mon Sep 12, 2011 10:39 pm    Post subject: How to send a zip file through MQ JMS Reply with quote

Apprentice

Joined: 29 Aug 2003
Posts: 42

Hi,
I need to send a zip message using MQ JMS. Currently I'm using BytesMessage to send the zip message and I'm able to retrieve that from the queue correctly. But I also need to set some RFH2 properties in <usr> folder of JMS. I do set JMSCompliant to true but the RFH2 headers do not get set.
I found following line in MQ JMS doc -

BytesMessage - Although JMS allows the use of message properties with byte messages, it is typically not done since the inclusion of properties might affect the format.

Does anyone know why it's not allowing me to set RFH2 properties and how can I both send a Zip message as well as be able to set RFH2 properties on that mesage?
Back to top
View user's profile Send private message
sigormley
PostPosted: Tue Sep 13, 2011 7:18 am    Post subject: Reply with quote

Newbie

Joined: 24 Feb 2004
Posts: 6

Hi rsinha,

When you say you are setting RFH2 properties, do you mean you are creating an RFH2 header and placing that in the message payload bytes, or are you using the standard JMS setxxxProperty methods on the message?

The property that determines if the RFH2 header used by WMQ is output is the TARGCLIENT=JMS property on the JMS Destination in use.

This should all be transparent if both ends are JMS applications, but if you are receiving in a non-JMS app, you'll need to make sure the app can skip over the RFH2 header in the message payload to find the zip data.

Not too sure why the manuals state you wouldn't normally use properties with BytesMessages!
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Sep 13, 2011 11:51 am    Post subject: Reply with quote

Grand High Poobah

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

Probably because BytesMessages are typically sent between JMS and non JMS systems and as such non JMS systems would have to either skip or preserver the RFH header before getting to the payload...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
rsinha
PostPosted: Wed Sep 14, 2011 8:17 am    Post subject: Reply with quote

Apprentice

Joined: 29 Aug 2003
Posts: 42

Actually, I wasn't setting some properties which our project required, before it set those as JMS setxxxProperty on the message. I'm able to set the properties on BytesMessage.

Thanks a lot for your responses.

rsinha
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 » How to send a zip file through MQ JMS
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.