Author |
Message
|
atheek |
Posted: Thu Aug 23, 2007 11:37 pm Post subject: MQFRMT blank |
|
|
 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 |
|
 |
fjb_saper |
Posted: Fri Aug 24, 2007 5:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Are you sending a TextMessage?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
atheek |
Posted: Sat Aug 25, 2007 4:07 pm Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Sat Aug 25, 2007 7:42 pm Post subject: |
|
|
 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 |
|
 |
atheek |
Posted: Sun Aug 26, 2007 2:13 pm Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Sun Aug 26, 2007 6:04 pm Post subject: |
|
|
 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 |
|
 |
atheek |
Posted: Sun Aug 26, 2007 6:54 pm Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Sun Aug 26, 2007 7:49 pm Post subject: |
|
|
 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 |
|
 |
atheek |
Posted: Sun Aug 26, 2007 10:34 pm Post subject: |
|
|
 Partisan
Joined: 01 Jun 2006 Posts: 327 Location: Sydney
|
thanks..saper ...it worked!! |
|
Back to top |
|
 |
atheek |
Posted: Mon Aug 27, 2007 2:11 pm Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Mon Aug 27, 2007 4:21 pm Post subject: |
|
|
 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 |
|
 |
atheek |
Posted: Mon Aug 27, 2007 5:49 pm Post subject: |
|
|
 Partisan
Joined: 01 Jun 2006 Posts: 327 Location: Sydney
|
Ok Boss...got it !! Many thanks for replying
Regards,
Atheek |
|
Back to top |
|
 |
|