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 » Need help setting Message Format as MQSTR

Post new topic  Reply to topic
 Need help setting Message Format as MQSTR « View previous topic :: View next topic » 
Author Message
sdkal
PostPosted: Sun Dec 28, 2014 8:10 pm    Post subject: Need help setting Message Format as MQSTR Reply with quote

Novice

Joined: 20 Sep 2011
Posts: 10

I am posting messages from Oracle Service Bus 11g to Websphere MQ 7.1, over JMS Bridge. WMB reads messages from MQ and process them further. I have a JNDI binding file configured, Queue Destination - TC=1.
When I post a message to MQ, I am told there is an issue with message, as Message Format is not set to MQSTR, rather it is blank. Given below is message header
[ 564 bytes] Message Descriptor (MQMD)
Report :00000000
Message Type :8 (Datagram)
Format :' '
Priority :4
Persistence :1 (Persistent)
'
Error is ==> Node '2110' received a message, but a warning was raised from the MQGET operation. MQRC={1}

I have checked all possible values to set from MQExplorer in binding file. Please advice, how I can configure Format to be sent as MQSTR, instead of blank.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Dec 29, 2014 5:29 am    Post subject: Reply with quote

Grand High Poobah

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

Very easy. Change your message type. You are sending a JMS BytesMessage or an unqualified javax.jms.Message. Use a TextMessage!

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
sdkal
PostPosted: Mon Dec 29, 2014 4:01 pm    Post subject: Reply with quote

Novice

Joined: 20 Sep 2011
Posts: 10

Please let me know, how I can set this value from MQ Explorer. Also, let me know how this is listed in Binding file, that what Key-Value pair should I look for?
Back to top
View user's profile Send private message
sdkal
PostPosted: Mon Dec 29, 2014 6:58 pm    Post subject: Reply with quote

Novice

Joined: 20 Sep 2011
Posts: 10

Thanks for you help, found the issue. I had to change the way the message is sent to MQ. Changed it to Text.
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 » Need help setting Message Format as MQSTR
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.