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 Discussion » Application Triggering on AIX

Post new topic  Reply to topic Goto page 1, 2  Next
 Application Triggering on AIX « View previous topic :: View next topic » 
Author Message
scar
PostPosted: Wed Sep 29, 2004 9:24 am    Post subject: Application Triggering on AIX Reply with quote

Centurion

Joined: 23 Jun 2004
Posts: 145

AMQ8409: Display Queue details.
DESCR(WebSphere MQ Default Local Queue)
PROCESS(FMCMAILNOTIFICATION) BOQNAME( )
INITQ(FMC.MAIL.NOTIFICATION.INITQ) TRIGDATA( )
CLUSTER( ) CLUSNL( )
QUEUE(FMC.MAIL.NOTIFICATION.QUEUE) CRDATE(2004-09-23)
CRTIME(08.44.47) ALTDATE(2004-09-2
ALTTIME(08.52.40) GET(ENABLED)
PUT(ENABLED) DEFPRTY(0)
DEFPSIST(NO) MAXDEPTH(5000)
MAXMSGL(4194304) BOTHRESH(0)
SHARE DEFSOPT(SHARED)
HARDENBO MSGDLVSQ(PRIORITY)
RETINTVL(999999999) USAGE(NORMAL)
TRIGGER TRIGTYPE(EVERY)
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(2)
CURDEPTH(1)


AMQ8409: Display Queue details.
DESCR(WebSphere MQ Default Local Queue)
PROCESS( ) BOQNAME( )
INITQ( ) TRIGDATA( )
CLUSTER( ) CLUSNL( )
QUEUE(FMC.MAIL.NOTIFICATION.INITQ) CRDATE(2004-09-2
CRTIME(08.46.04) ALTDATE(2004-09-2
ALTTIME(08.46.04) GET(ENABLED)
PUT(ENABLED) DEFPRTY(0)
DEFPSIST(NO) MAXDEPTH(5000)
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(1) OPPROCS(0)
CURDEPTH(0)


AMQ8407: Display Process details.
DESCR( )
APPLICID(/home/fmc/wfegwmcode/mail/mailnotificationscript.ksh)
USERDATA( ) ENVRDATA( )
PROCESS(FMCMAILNOTIFICATION) ALTDATE(2004-09-29)
ALTTIME(07.42.35) APPLTYPE(UNIX)



After atarting trigger if a message is put to Q
I can see all the echo statements i have given in mailnotificationscript.ksh
But javac notify.java
and
java notify
are not executed.
and i dont see any error messages too.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Sep 29, 2004 9:26 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://www.mqseries.net/phpBB2/viewtopic.php?t=12988

I would suspect that java and javac are not on the path of the triggering user.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
vennela
PostPosted: Wed Sep 29, 2004 10:17 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Quote:
I can see all the echo statements i have given in mailnotificationscript.ksh
But javac notify.java
and
java notify
are not executed.
and i dont see any error messages too.


Also how can you tell they are not executed.
javac will not return anything if the compilation is good. Try deleting the classfile and trigger the app. See if the classfile is created or not. Then you can confirm whether or not the javac is executed.

Similarly, do you have any System.out.println statements in the program to confirm that java is not called?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
scar
PostPosted: Wed Sep 29, 2004 10:52 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2004
Posts: 145

The message is still in the queue.
I even had some display commands in java code to check that but, I dont even see them.
Both mqm and fmc are in the same group.
The QMGR and Trigger are both running under fmc.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Sep 29, 2004 11:32 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Are there any messages in your dead letter queue?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
scar
PostPosted: Wed Sep 29, 2004 11:50 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2004
Posts: 145

nope no mesages in dead letter queue
Back to top
View user's profile Send private message
JT
PostPosted: Wed Sep 29, 2004 1:16 pm    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Quote:
CURDEPTH(1)

What is the BackoutCount of the message remaining on the queue ?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Sep 29, 2004 6:51 pm    Post subject: Reply with quote

Grand High Poobah

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

Remember the message does not disappear magically from the queue.
YOU are supposed to consume the message from the queue.
If your script mailnotificationscript.ksh does not consume the message it will stay on the queue.

NOW IF YOU ARE TRIGGERING A JAVA PROGRAM
did you make sure that your trigger monitor gets started in a shell/process with the right environment variables??
Otherwise you java program might just hang...
check ps -ef | grep java

What is your OS, MQ Version CSD?

Run a search on environment variables. I know I posted them before...(about 3 months ago...)

Enjoy
Back to top
View user's profile Send private message Send e-mail
Nigelg
PostPosted: Wed Sep 29, 2004 11:37 pm    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

You need APAR IY43961, which is included in CSD04...
Quote:

When a Java application is triggered, it hangs while loading a
Java library when JIT is enabled (default behaviour). This is
caused by WebSphere MQ V5.3 blocking SIGTRAP on all threads and
including SIGTRAP in the signal mask passed to sigwait().
SIGTRAP is used by JIT for its own internal purposes.

and you need to set an env var in the shell from which you start the trigger monitor...
Quote:

This APAR introduces a new environment variable named
AMQ_NO_SIGWAIT_SIGTRAP to WebSphere MQ V5.3, which must be used
to make the change effective. Set this environment variable to
a value of 1 (and ensure it is exported) in the shell from which
you start the trigger monitor.

OR
you could not run the JIT compiler by
Quote:

Say export JAVA_COMPILER=NONE in the shell before starting the trigger monitor program. This will prevent the JIT compiler from running.
Back to top
View user's profile Send private message
scar
PostPosted: Thu Sep 30, 2004 4:28 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2004
Posts: 145

We are on AIX 5.1
MQ Ver 5.3

i tried export JAVA_COMPILER=NONE but it didnt work


when ever i start the trigger monitor from cmd prompt
it starts to execute the script file i gave in applicid of the process
is it the way its supposed to work
or
is it doing so because there are still messages on initiation Q
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 30, 2004 4:30 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

scar wrote:
when ever i start the trigger monitor from cmd prompt
it starts to execute the script file i gave in applicid of the process
is it the way its supposed to work
or
is it doing so because there are still messages on initiation Q


The second.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
scar
PostPosted: Thu Sep 30, 2004 5:32 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2004
Posts: 145

so do you want me to remove all the messages from the INITQ first and try it.
export JAVA_COMPILER=NONE
export AMQ_NO_SIGWAIT_SIGTRAP=1
export AMQ_SIGCHLD_SIGACTION=YES
runmqtrm -m FMCQM -q FMC.MAIL.NOTIFICATION.INITQ
i used the above 4 commands in a script file and started the trigger but still the same.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 30, 2004 5:39 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

What do you see in the window that's running the trigger monitor?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
scar
PostPosted: Thu Sep 30, 2004 6:37 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2004
Posts: 145

I just did ps -ef | grep java
there are about a hunred of the processes
(i.e.) javac notification.java and java notification
i terminated all of them.
I dont know why
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 30, 2004 6:43 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

So your application is starting, it's just not able to process messages on your queue.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General Discussion » Application Triggering on AIX
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.