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 Previous  1, 2
 Application Triggering on AIX « View previous topic :: View next topic » 
Author Message
scar
PostPosted: Thu Sep 30, 2004 9:22 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2004
Posts: 145

if i run the code directly its getting the message from the queue and processing it.
do you have any thoughts about why its not doing it if run thru trigger.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Sep 30, 2004 5:07 pm    Post subject: Reply with quote

Grand High Poobah

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

You did not specify your CSD. If not at CSD07 move to CSD07

We have been running with the env variables on AIX at
CSD00, CSD06 and CSD07.
It worked fine...

Enjoy
Back to top
View user's profile Send private message Send e-mail
siliconfish
PostPosted: Thu Sep 30, 2004 5:28 pm    Post subject: Reply with quote

Master

Joined: 12 Aug 2002
Posts: 203
Location: USA

Can you run the trigger monitor using nohup and paste the nohup.out? else just run the trigger monitor as a foreground process and put a message on the application queue and paste the output.
Remove the "javac notification" from the script and compile it seperately and just include "java notification".
How are u passing the details of the application queue to your java program i mean the MQTMC2 data and can u print the queue name and the queue manager name using System.out.print statements to ensure that ur java app has the required info.
You can also check the IPPROCS on the queue to check if the java app has opened the queue for Input. (use DIS QS).
Back to top
View user's profile Send private message
scar
PostPosted: Fri Oct 01, 2004 8:01 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2004
Posts: 145

I guess CSD0
mqver gives the following

Name: WebSphere MQ
Version: 530
CMVC level: p000-L021011
BuildType: IKAP - (Production)
Back to top
View user's profile Send private message
scar
PostPosted: Fri Oct 01, 2004 8:05 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2004
Posts: 145

this is the output displayed in trigger monitor



Waiting for a trigger message

/home/fmc/wfegwmcode/mail/mailnotificationscript.ksh 'TMC 2FMC.MAIL.NOTIFICAT
ION.QUEUE FMCMAILNOTIFICATION
/home/fmc/wfeg
wmcode/mail/mailnotificationscript.ksh





FMCQM '
/usr/mqm/java/lib
/home/db2cae/sqllib/function:/home/db2cae/sqllib/java/db2java.zip:/home/db2cae/s
qllib/java/runtime.zip:/home/db2inst1/sqllib/java/db2java.zip:/home/db2inst1/sql
lib/java/db2jcc.jar:/home/db2inst1/sqllib/java/sqlj.zip:/home/db2inst1/sqllib/fu
nction:/home/db2inst1/sqllib/java/db2jcc_license_cisuz.jar:/home/db2inst1/sqllib
/java/db2jcc_license_cu.jar:.:/usr/java130/jre/lib/rt.jar:/usr/java131/jre/lib/r
t.jar:/usr/mqm/java/lib/com.ibm.mq.jar:/usr/mqm/java/lib/com.ibm.mqjms.jar:/usr/
mqm/java/lib/connector.jar:/usr/mqm/java/lib/fscontext.jar:/usr/mqm/java/lib/jms
.jar:/usr/mqm/java/lib/providerutil.jar:/usr/mqm/java/lib/jta.jar:/usr/mqm/java/
lib/jndi.jar:usr/mqm/java/lib/ldap.jar:usr/mqm/java/lib/com.ibm.mqbind.jar:/home
/fmc/javalib/imap.jar:/home/fmc/javalib/mailapi.jar:/home/fmc/javalib/pop3.jar:/
home/fmc/javalib/smtp.jar:/home/fmc/javalib/activation.jar:/home/fmc/javalib/mai
l.jar:/usr/java131/lib/tools.jar
/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/fmc/bin:/usr/bin/X11:/sbin:/usr/java131/b
in:.:/home/db2inst1/sqllib/bin:/home/db2inst1/sqllib/adm:/home/db2inst1/sqllib/m
isc:/home/fmc:/home/fmc/wfegwmcode/mail:/usr/java130/jre/bin:/usr/java131/jre/bi
n:/usr/mqm/java/bin
fmc pts/3 Oct 01 06:46 (hostname)
/home/fmc/wfegwmcode/mail



the last 2 lines
i had who am i in scriptfile
fmc pts/3 Oct 01 06:46 (hostname)
i had pwd in script file
/home/fmc/wfegwmcode/mail

and all the above i am just echoing the LIBPATH,classpath,path
Back to top
View user's profile Send private message
vennela
PostPosted: Fri Oct 01, 2004 11:16 am    Post subject: Reply with quote

Jedi Knight

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

What about LD_LIBRARY_PATH

It should be set to
LD_LIBRARY_PATH=/usr/mqm/java/lib

Also no CSD is ldefinitely inviting trouble.
Apply the latest CSD CSD07.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
fjb_saper
PostPosted: Fri Oct 01, 2004 11:18 am    Post subject: Reply with quote

Grand High Poobah

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

Can you post your script (.sh) ?

How are you calling your java program ?

Thanks
F.J.
Back to top
View user's profile Send private message Send e-mail
vennela
PostPosted: Fri Oct 01, 2004 11:21 am    Post subject: Reply with quote

Jedi Knight

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

This is the APAR that is fixed in SCD04

Code:
IY43961 - A triggered Java application hung when instantiating a
             new queue manager object.
   
Back to top
View user's profile Send private message Send e-mail Visit poster's website
scar
PostPosted: Mon Oct 04, 2004 4:36 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2004
Posts: 145

we ar going to install CSD07 today
and we will see what will happen.
Back to top
View user's profile Send private message
scar
PostPosted: Tue Oct 05, 2004 4:40 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2004
Posts: 145

we had installed CSD07
now this is the error i am getting

i havent specified -sourcepath /home/fmc/wfegwmcode/mail

instead i gave this /home/fmc/wfegwmcode/mail/notification.java as file name

might that be the error

error: cannot read: /home/fmc/wfegwmcode/mail/notification.java
1 error
Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/Address
End of application trigger.
Back to top
View user's profile Send private message
scar
PostPosted: Tue Oct 05, 2004 5:04 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2004
Posts: 145

after i added -source path its giving the following error

error: cannot read: notification.java
1 error
Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/Address
End of application trigger.

__________________________________________________
Waiting for a trigger message
Back to top
View user's profile Send private message
scar
PostPosted: Tue Oct 05, 2004 5:10 am    Post subject: Reply with quote

Centurion

Joined: 23 Jun 2004
Posts: 145

file java.notification has no privilages for geoup and others
i changed the chmod and its working
thanks a lot guys.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 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.