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 Installation/Configuration Support » mirrorq and java application

Post new topic  Reply to topic
 mirrorq and java application « View previous topic :: View next topic » 
Author Message
Galichet
PostPosted: Thu Sep 07, 2006 11:53 pm    Post subject: mirrorq and java application Reply with quote

Acolyte

Joined: 26 Jun 2001
Posts: 69
Location: Paris - France

Hi all,

I'm using the mirrorq exit on AIX

I've set up a mirroring on my Queue TEST (the mirror queue is TEST.MIRROR).

When I test it, all works fine when the message is put with the amqsput program on the AIX box, all works fine too when the message is sent by the same sample on another Queue Manager, but the message is not duplicated in the mirror queue when it is a java application that put the message on the queue ... ??

If someone has an idea ....

(I'm using the mirrorq.c written on 08/29/04)
_________________
Eric Galichet
SMABTP
France
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Fri Sep 08, 2006 2:19 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Did you download the most recent version of mirrroq?

I mean, did you make a fresh download?

This is a known issue with mirrroq, and I'd thought that the last version uploaded had this fixed.

If not, then you will have to try and fix the code yourself. Good thing it's sample code.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Galichet
PostPosted: Fri Sep 08, 2006 2:59 am    Post subject: Reply with quote

Acolyte

Joined: 26 Jun 2001
Posts: 69
Location: Paris - France

Yes, I've the most recent version of the source (downloaded in the ibm web site)

http://www-304.ibm.com/jct09002c/isv/tech/sample_code/mq/mirrorq_aix.tar.Z
_________________
Eric Galichet
SMABTP
France
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Fri Sep 08, 2006 4:08 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Well.
A) I thought the most recent version had this fixed
B) It's sample code, not even vaguely supported
C) The author no longer works for IBM, and doesn't read here anymore
D) This all means that you have you to try and fix this yourself.

Start by enabling tracing, per the instructions in the source code.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
MB
PostPosted: Fri Sep 08, 2006 3:42 pm    Post subject: Reply with quote

Acolyte

Joined: 25 Jun 2004
Posts: 52

Quote:
/**********************************************************/
/* 04/15/2004 - change default behavior to only exclude */
/* internal functions when requested by setting */
/* MIRRORQ_NO_INTERNAL to any value */
/**********************************************************/
if (pExitParms->APICallerType == MQXACT_INTERNAL)
{
pEnv = getenv("MIRRORQ_NO_INTERNAL");
if (pEnv != 0)
{
rc = MQXCC_SKIP_FUNCTION;
}
}


Did you set any environment variable MIRRORQ_NO_INTERNAL by any chance?


Quote:
TraceLong(pExitUserArea, __LINE__, LOG_DETAIL,
"Entry CompCode = ", *pCompCode);
TraceLong(pExitUserArea, __LINE__, LOG_DETAIL,
"Caller Type = ", pExitParms->APICallerType);
TraceLong(pExitUserArea, __LINE__, LOG_DETAIL,
"Hconn: ", (long)**ppHconn);


If you enable the trace, what are you getting the Caller Type as?

I had a slightly similar problem: When one specific WMQI 2.1 Message Flow wrote a message to the queue, the mirror message did not use to come, though such behavior was not seen with any other Message Flows in the same environment. I could never debug that.
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 Installation/Configuration Support » mirrorq and java application
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.