Author |
Message
|
scar |
Posted: Wed Sep 29, 2004 9:24 am Post subject: Application Triggering on AIX |
|
|
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 |
|
 |
jefflowrey |
Posted: Wed Sep 29, 2004 9:26 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
vennela |
Posted: Wed Sep 29, 2004 10:17 am Post subject: |
|
|
 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 |
|
 |
scar |
Posted: Wed Sep 29, 2004 10:52 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Wed Sep 29, 2004 11:32 am Post subject: |
|
|
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 |
|
 |
scar |
Posted: Wed Sep 29, 2004 11:50 am Post subject: |
|
|
Centurion
Joined: 23 Jun 2004 Posts: 145
|
nope no mesages in dead letter queue |
|
Back to top |
|
 |
JT |
Posted: Wed Sep 29, 2004 1:16 pm Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
What is the BackoutCount of the message remaining on the queue ? |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Sep 29, 2004 6:51 pm Post subject: |
|
|
 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 |
|
 |
Nigelg |
Posted: Wed Sep 29, 2004 11:37 pm Post subject: |
|
|
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 |
|
 |
scar |
Posted: Thu Sep 30, 2004 4:28 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Thu Sep 30, 2004 4:30 am Post subject: |
|
|
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 |
|
 |
scar |
Posted: Thu Sep 30, 2004 5:32 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Thu Sep 30, 2004 5:39 am Post subject: |
|
|
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 |
|
 |
scar |
Posted: Thu Sep 30, 2004 6:37 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Thu Sep 30, 2004 6:43 am Post subject: |
|
|
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 |
|
 |
|