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 » General IBM MQ Support » Triggering with MA7K

Post new topic  Reply to topic
 Triggering with MA7K « View previous topic :: View next topic » 
Author Message
EnOne
PostPosted: Mon Nov 25, 2002 9:58 am    Post subject: Triggering with MA7K Reply with quote

Centurion

Joined: 09 Oct 2002
Posts: 100
Location: Kansas City

I'm setting up the triggering service to start a java adapter and I keep recieving the error message 2079 which is MQRC_TRUNCATED_MSG_ACCEPTED which talks about the datalength field and the Buffer parameter, where are these mysterious buffer and datalength values set and how can I set them to allow these messages to get through without truncating.

These are small messages 1-3 KB apiece. When I run the trigger from the command line (runmqtrm -m MQSERIES -q INITQUEUE) instead of using the service everything works fine.

runnning on windows 2000 server sp3
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Mon Nov 25, 2002 6:31 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

What is giving you this error, MA7K, or the triggered app?

If MA7K, there is no tuning needed here. Make sure you edit the set up file to look at the correct init queue, which should only have trigger messages in it. If you have it watching an INIT queue that only gets trigger messages, i don't see how it would get the 2079.

If it your app that is getting the 2079, then it has nothing to do with MA7K.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
EnOne
PostPosted: Tue Nov 26, 2002 8:37 am    Post subject: Reply with quote

Centurion

Joined: 09 Oct 2002
Posts: 100
Location: Kansas City

The message I recieve in the event viewer is

Rc = 2079 from MQGET

which is the truncated message accepted error, would the buffer and datalength be something set in the code or in the trigger. I believe it has to be in the triggering application since when I use the runmqtrm command to set up the listener everything works fine.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Tue Nov 26, 2002 8:55 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

I don't have access to the source code in MA7K, so its hard to tell what is going on. Maybe it defines a buffer size only big enough to handle a valid trigger message? You are not watching the INIT queue and so messages bigger than a trigger message are being picked up?

Buffer = A value you specify in your app code that tells the MQGET how much space you have allocated for the incoming message. If you specify a length shorter than the message coming in, you get the truncated message error.

Datalength = A value that is returned to you after every MQGET, whether that MQGET is succesful or not. It is only an output parameter. You can't set it. After every MQGET, it tells exactly how long the message you just did an MQGET against is, regardless of your buffer length or if the get worked or not.



Does the EVENT Viewer tell you which queue / executable is giving you this error? Can you post the entire error message?
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
EnOne
PostPosted: Tue Nov 26, 2002 11:36 am    Post subject: Reply with quote

Centurion

Joined: 09 Oct 2002
Posts: 100
Location: Kansas City

when you asked for the entire event I went over the setup.ini and found that I had the service looking at the wrong queue.

now that I have the init queue correctly set in the setup.ini the error
"Could not find executable." shows up then gives the exact path for the batch file, this one I believe has to do with which directory the service is running in, i'll look back through the MA7K documentation so see if there is anything on this.
Back to top
View user's profile Send private message
EnOne
PostPosted: Fri Dec 06, 2002 6:46 am    Post subject: Reply with quote

Centurion

Joined: 09 Oct 2002
Posts: 100
Location: Kansas City

The message 'could not find executable' refers to the difficulty of locating the triggered appllication, under many subdirectories on a different drive, and making the service run in a directory other than c:\winnt\system32 once these problems were solved everything ran smoothly thanks
Back to top
View user's profile Send private message
rajmq
PostPosted: Fri Dec 13, 2002 12:31 am    Post subject: Reply with quote

Partisan

Joined: 29 Sep 2002
Posts: 331
Location: USA

Hi njpeeke

I am Using MQ5.2, i need to run automatic trigger when the message is received to queue.
Can u explain some more detail for setting up the triggering service to start a java prg.

regards
raj[/u]
Back to top
View user's profile Send private message
EnOne
PostPosted: Mon Dec 16, 2002 5:59 am    Post subject: Reply with quote

Centurion

Joined: 09 Oct 2002
Posts: 100
Location: Kansas City

we set up the java program to be called by a batch file and used triggering to call the batch file which called the java program.
Back to top
View user's profile Send private message
rajmq
PostPosted: Sat Dec 28, 2002 12:28 am    Post subject: Reply with quote

Partisan

Joined: 29 Sep 2002
Posts: 331
Location: USA

Hi,

Thanks for ur Reply

Here our Application needs to trigger more than one program.it means one single application queue needs to call more than one java program.

and also How to implement the batch file and trigger program, can u give some more details for this.

regrads
raj
Back to top
View user's profile Send private message
AlexeiSkate
PostPosted: Thu Jul 31, 2003 3:48 pm    Post subject: Reply with quote

Centurion

Joined: 10 Apr 2002
Posts: 123

I got a 2058 when starting up the MK7 trigger service. I know that my initiation queue and queue manager specified were correct. Where else can I look to solve the connection problem? Thanks.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Thu Jul 31, 2003 6:21 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Is your queue manager started?
If the listner started?

If you are running MA7K as a client, how are you setting up the connection parameters? If by channel tables, you have to make sure the channel tables contain the QM name that you are specifying.
_________________
Peter Potkay
Keep Calm and MQ On
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 » General IBM MQ Support » Triggering with MA7K
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.