Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Response Code 2080 From JMS

408 views
Skip to first unread message

Joe Koziatek

unread,
Mar 3, 2004, 2:37:09 PM3/3/04
to
Hi, I am developing a messaging system interfacing with MQ via Java JMS. I
am able to send and receive from JMS without a problem, but when I send a
message from Java JMS and try to receive it with the MQSeries example C
program 'amqsget', the following occurs:

/opt/mqm/samp> amqsget Q1
Sample AMQSGET0 start
MQGET ended with reason code 2080
Sample AMQSGET0 end

When I browse the Queue with the example C program 'amqsgbr' on the same
message, it displays the following:

/opt/mqm/samp> amqsgbr Q1
Sample AMQSGBR0 (browse) start
Messages for Q1
1 <RFH >
--- truncated
no more messages
Sample AMQSGBR0 (browse) end

In researching Reason Code 2080, it is described as meaning that the receive
buffer is to small. This cannot be, with the small message I'm sending.

The display of my Queue from 'runmsqc' is as follows:

var/mqm> runmqsc
5724-B41 (C) Copyright IBM Corp. 1994, 2002. ALL RIGHTS RESERVED.
Starting MQSC for queue manager .

dis q(Q1)
1 : dis q(Q1)
AMQ8409: Display Queue details.
DESCR(WebSphere MQ Default Local Queue)
PROCESS( ) BOQNAME( )
INITQ( ) TRIGDATA( )
CLUSTER( ) CLUSNL( )
QUEUE(Q1) CRDATE(2004-02-12)
CRTIME(11.02.16) ALTDATE(2004-02-12)
ALTTIME(11.02.16) GET(ENABLED)
PUT(ENABLED) DEFPRTY(0)
DEFPSIST(NO) MAXDEPTH(10)
MAXMSGL(4194304) BOTHRESH(0)
SHARE DEFSOPT(SHARED)
HARDENBO MSGDLVSQ(PRIORITY)
RETINTVL(999999999) USAGE(NORMAL)
NOTRIGGER TRIGTYPE(FIRST)
TRIGDPTH(1) TRIGMPRI(0)
QDEPTHHI(80) QDEPTHLO(20)
QDPMAXEV(ENABLED) QDPHIEV(DISABLED)
QDPLOEV(DISABLED) QSVCINT(999999999)
QSVCIEV(NONE) DISTL(NO)
DEFTYPE(PREDEFINED) TYPE(QLOCAL)
SCOPE(QMGR) DEFBIND(OPEN)
IPPROCS(0) OPPROCS(0)
CURDEPTH(0)

The Java Message Objects received from a JMS GENERATED message and a C
program GENERATED message are shown below:

JAVA MESSAGE OBJECT RECEIVED FROM MESSAGE GENERATED FROM JAVA JMS

Got message:
JMS Message class: jms_text
JMSType: null
JMSDeliveryMode: 1
JMSExpiration: 0
JMSPriority: 0
JMSMessageID: ID:414d5120514d31202020202020202020c1d82c40011b0020
JMSTimestamp: 1078339661966
JMSCorrelationID:null
JMSDestination: queue:///Q1
JMSReplyTo: null
JMSRedelivered: false
JMS_IBM_PutDate:20040303
JMSXAppID:java
JMS_IBM_Format:MQSTR
JMS_IBM_PutApplType:6
JMS_IBM_MsgType:8
JMSXUserID:mqm
JMS_IBM_PutTime:18474197
JMSXDeliveryCount:1
TEST_FROM_JAVA
Reply string = 'TEST_FROM_JAVA'


JAVA MESSAGE OBJECT RECEIVED FROM MESSAGE GENERATED FROM MQ EXAMPLE C
PROGRAM

Got message:
JMS Message class: jms_text
JMSType: null
JMSDeliveryMode: 1
JMSExpiration: 0
JMSPriority: 0
JMSMessageID: ID:414d5120514d31202020202020202020c1d82c4002110020
JMSTimestamp: 1078328804530
JMSCorrelationID:null
JMSDestination: null
JMSReplyTo: null
JMSRedelivered: false
JMS_IBM_PutDate:20040303
JMSXAppID:amqsput
JMS_IBM_Format:MQSTR
JMS_IBM_PutApplType:6
JMS_IBM_MsgType:8
JMSXUserID:mqm
JMS_IBM_PutTime:15464453
JMSXDeliveryCount:1
MSG_FROM_C
Reply string = 'MSG_FROM_C'


The platform is Red Hat Linux 7.1.

Does anyone have any insight as to why the example C program 'amqsget'
returns a reason code of 2080 when receiving a message generated from JAVA
JMS ?

Joek


Gunter Jeschawitz

unread,
Mar 4, 2004, 5:30:42 AM3/4/04
to
If you use JMS, there is an additional header in the message. For amqsget
this are also data. You have to add the headersize to the messagelen.

Use amqsbcg to look in the message.

Matthew M L Johnson

unread,
Mar 4, 2004, 11:28:17 AM3/4/04
to
As the previous response noted, your message is, in fact, too long for
the amqsget and amqsgbr programs. Both of these use a buffer of 100
bytes that must contain the header information and the JMS header
information will take up most, if not all, of this. You can change the
source and recompile these programs to allow a larger buffer or, if you
plan on sending messages to non-JMS clients as part of your application
you may want to set the target client field appropriately such that the
JMS header isn't placed on the message.

Matt Johnson

Bill Matthews

unread,
Mar 4, 2004, 12:46:50 PM3/4/04
to
Joe,
Take a look at the RFHUtil that is in MQ SupportPac IH03 -

RogerLacroix

unread,
Mar 4, 2004, 9:51:34 PM3/4/04
to
Hi,

If you want a GUI message editor to run natively on Linux that can
easily handle large JMS or non-JMS messages, you could use MQ
Visual Edit.

For more information or to download a 30-day trial of MQ Visual Edit, go
to: http://www.capitalware.biz/products.html

Regards, Roger Lacroix Capitalware Inc. http://www.capitalware.biz

--
posted via MFF : http://www.MainFrameForum.com - USENET Gateway

0 new messages