|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
  |
|
Recieving bytes message !! |
View previous topic :: View next topic |
Author |
Message
|
sri33_uk |
Posted: Mon Jan 19, 2004 7:11 am Post subject: Recieving bytes message !! |
|
|
Newbie
Joined: 19 Jan 2004 Posts: 1
|
Hi , I am using websphere MQ . Everything fine with sending message to main frame the problem is when there is return message . On return message my MDB invokes fine but the message body is not in text format after reading . Please find the snippet of code and stack trace .
code snippet
else if(inMessage instanceof BytesMessage)
{
System.out.println("The message is a BytesMessage ");
byte[] b = new byte[5000];
BytesMessage b_Msg = (BytesMessage)inMessage;
int m = b_Msg.readBytes(b);
msg = new String (b);
System.out.println("The message is : " + msg);
paxusRetMsgParseServer = PaxusReturnMsgParseServerFactory.getPaxusRetMsgParseServer();
paxusRetMsgParseServer.onPaxusMessage(msg);
System.out.println("In BytesMessage End ");
}
stack trace is
[19/01/04 14:50:22:299 GMT] 4d901ca1 SystemOut O PaxusMessageListenerMDB : OnMessage START
[19/01/04 14:50:22:299 GMT] 4d901ca1 SystemOut O Invoking MDB onMessage() now.
[19/01/04 14:50:22:300 GMT] 4d901ca1 SystemOut O Message Object is:
JMS Message class: jms_bytes
JMSType: null
JMSDeliveryMode: 2
JMSExpiration: 0
JMSPriority: 4
JMSMessageID: ID:414d51204d54415845503031202020204003c5ae20002305
JMSTimestamp: 1074523824940
JMSCorrelationID:ID:414d51204d54415845503031202020204003c5ae20002305
JMSDestination: null
JMSReplyTo: queue://MQTR/NUEP.DEV2.LIFE
JMSRedelivered: false
JMSXDeliveryCount:1
JMS_IBM_MsgType:2
JMSXAppID:CITPX2A APIB
JMS_IBM_Format:MQCICS
JMS_IBM_Encoding:785
JMS_IBM_PutApplType:1
JMS_IBM_Character_Set:285
JMSXUserID:mqtrpx2a
JMS_IBM_PutTime:14502494
JMS_IBM_PutDate:20040119
Integer encoding: 1, Floating point encoding 768
c3c9c84000000002000000b4000003110000011dd4d8e2e3d9404040000000000000000000000000
0000000000000111fffffffe0000000100000fa00000000000000000000000000000000020202020
2020202040404040404040405c5c5c5c5c5c5c5c4040404040404040404040404040404040404040
40404040c1d7c9c24040404040404040404040404040404040404040404040404040404040404040
4040404000000000000000000000000000000000c1d7c9c4d9c9e540d7e7c1d5f0f1f1f0f4f3f240
40f24040f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f8f4f7f0f1f0f0f0f0f1f0f0f0f0f3
f8f7f1f0f0f0f0f1f3f5f200f0f1f2f0f4f0f0f7f1f0f4f340f24040404040404040404040404040
404040404040404040404040f0f0f3f2f8f3f5f1f2f6f2f4f7f9f0f16d6d40404040404040404040
40404040404040404040404040404040404040404040404040404040404040404040404040404040
40404040404040404040404040404040404040404040404040404040404040404040404040404040
...
[19/01/04 14:50:22:300 GMT] 4d901ca1 SystemOut O The message is a BytesMessage
[19/01/04 14:50:22:300 GMT] 4d901ca1 SystemOut O The message is : ÃÉÈ@´ÔØâãÙ@@@ÿÿÿþ @@@@@@@@\\\\\\\\@@@@@@@@@@@@@@@@@@@@@@@@Á×ÉÂ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Á×ÉÄÙÉå@×çÁÕðññðôóò@@ò@@ðððððððððððððððððððððøô÷ðñððððñððððóø÷ñððððñóõòðñòðôðð÷ñðôó@ò@@@@@@@@@@@@@@@@@@@@@@@@@@ððóòøóõñòöòô÷ùðñmm@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[19/01/04 14:50:22:300 GMT] 4d901ca1 SystemOut O PaxusRetMsgParseServerFactory:getPaxusRetMsgParseServer: START
Help is highly appreciated ,
Rao |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jan 19, 2004 7:33 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Your mainframe message has an MQSeries format of MQFMT_CICS, instead of a format of MQFMT_STRING.
I do not believe that character conversion is done automatically for anything other than MQFMT_STRING. And, in fact, the bytes you posted for your message are still in EBCDIC, not ASCII.
So, that is why you are getting a BytesMessage instead of a TextMessage - because the message is not Text. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|
|
  |
|
Page 1 of 1 |
|
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
|
|
|
|