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 » MQFRMT blank

Post new topic  Reply to topic
 MQFRMT blank « View previous topic :: View next topic » 
Author Message
atheek
PostPosted: Thu Aug 23, 2007 11:37 pm    Post subject: MQFRMT blank Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

Hi ,

We are having an integration appln , sits between say A and B... the interface to both is MQ. I am using mq jms to connect my appln to both the queues.
But when the messages reach the end system, B, the MQFRMT is "" (blank) in the message header. I was expecting it to be MQSTR.

I have set TARGCLIENT(MQ) for the queue to B... but still its going to B with blank message format becoz of which their application is not able to pick messages...

any help for resolving this?

Regards,
Atheek


Last edited by atheek on Sun Aug 26, 2007 2:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Aug 24, 2007 5:28 am    Post subject: Reply with quote

Grand High Poobah

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

Are you sending a TextMessage?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
atheek
PostPosted: Sat Aug 25, 2007 4:07 pm    Post subject: Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

we're sending a text message only..we're using weblogic foreign jms setup to connect to the queue . Is there any jms object I need to configure for ensuring messages go to the target with format MQSTR?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Aug 25, 2007 7:42 pm    Post subject: Reply with quote

Grand High Poobah

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

atheek wrote:
we're sending a text message only..we're using weblogic foreign jms setup to connect to the queue . Is there any jms object I need to configure for ensuring messages go to the target with format MQSTR?

Yes you need to use a javax.jms.TextMessage to send a message with format MQFMT_STRING.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
atheek
PostPosted: Sun Aug 26, 2007 2:13 pm    Post subject: Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

thanks saper. We are using aqualogic service bus (alsb) and in that for a business service we have used a MFL as a request type. I think that is causing the problem..we need to change this to text , I believe.

One more clarification:

our appln is in windows and B is in AIX...as a result there will be differences in CCSID's and encodings.

we are sending the message with mqmd ccsid set to 273 (windows) and encoding = native. when this reaches AIX queue manager , will it automatically do the conversion to its ccsid and encoding ? or the receiving appln needs to do anything ? ( i read sumwhere it shud use convert option in mqget call...is this reqd?) And is it required to set MQMD format to MQSTR if this conversion has to take place?

I am also using an alsb proxy service to read from a queue using foreign jms....to enforce this convert option, any idea wher I need to configure


Regards,
Atheek
Back to top
View user's profile Send private message
Vitor
PostPosted: Sun Aug 26, 2007 6:04 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

atheek wrote:
( i read sumwhere it shud use convert option in mqget call...is this reqd?) And is it required to set MQMD format to MQSTR if this conversion has to take place?


Yes to both.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
atheek
PostPosted: Sun Aug 26, 2007 6:54 pm    Post subject: Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

thanks vitor...but still anyone can tell why the mqfmt is blank...we're using text/UTF-8 encoding in the ALSB business service..does this "UTF-8" have anything to do for this issue(format field blank)???


TIA

Regards,
Atheek
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Aug 26, 2007 7:49 pm    Post subject: Reply with quote

Grand High Poobah

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

atheek wrote:
thanks vitor...but still anyone can tell why the mqfmt is blank...we're using text/UTF-8 encoding in the ALSB business service..does this "UTF-8" have anything to do for this issue(format field blank)???


TIA

Regards,
Atheek

Possibly. If it uses the java native interface and does a writeUTF than the only correct way is to read the message with readUTF...

The standard here should be to declare the qcf with ccsid 1208 (UTF-
This would ensure that the messages are UTF-8 on the queue. The format should be MQFMT_STRING (using javax.jms.TextMessage)...

When you read them use get with convert.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
atheek
PostPosted: Sun Aug 26, 2007 10:34 pm    Post subject: Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

thanks..saper ...it worked!!
Back to top
View user's profile Send private message
atheek
PostPosted: Mon Aug 27, 2007 2:11 pm    Post subject: Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

one more clarification:

if using convert option does the data conversion then, when does crtmqcvx come into picture??
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Aug 27, 2007 4:21 pm    Post subject: Reply with quote

Grand High Poobah

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

atheek wrote:
one more clarification:

if using convert option does the data conversion then, when does crtmqcvx come into picture??

I believe this comes into the picture when you need to create an additional conversion table. Say the conversion from CCSID A to CCSID B is not supported but the conversion from CCSID A to CCSID C and CCSID C to CCSID B is supported.
Now you need to create a new mapping from CCSID A to B and B to A.

You know what maps where and need to create the map. I believe that this command means create mq conversion map/table....

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
atheek
PostPosted: Mon Aug 27, 2007 5:49 pm    Post subject: Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

Ok Boss...got it !! Many thanks for replying



Regards,
Atheek
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 » MQFRMT blank
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.