Author |
Message
|
Surfer |
Posted: Mon Jun 20, 2005 5:54 pm Post subject: Triggers in AIX machine |
|
|
 Apprentice
Joined: 14 Jun 2002 Posts: 31
|
I created process assigned a java program to it. Tryed it in Windows environment and it works perfectly.
But when I wanted to try it at AIX, the batch file that is called from the trigger is launched until the line that calls my java class and it stops with no error message.
Code: |
[b]/javaHome/bin/java -Djava.library.path "<path for shared libraries> etc " /myJavaClass[/b] |
I launched the same xyz.sh file from the command line and it works.
I am wondering what was happen and how could I solve that problem ?
Any help.
Thank you in advance. |
|
Back to top |
|
 |
Surfer |
Posted: Mon Jun 20, 2005 6:31 pm Post subject: Triggers with aix machine |
|
|
 Apprentice
Joined: 14 Jun 2002 Posts: 31
|
I think I found the problem.
IBM said that this variable : AMQ_NO_SIGWAIT_SIGTRAP
should be set to the value of 1 and exported. |
|
Back to top |
|
 |
Surfer |
Posted: Tue Jun 21, 2005 4:40 am Post subject: |
|
|
 Apprentice
Joined: 14 Jun 2002 Posts: 31
|
I tryed what IBM told but it doesnt work.
Any help ? |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jun 21, 2005 6:07 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You need to make sure that it is set where it needs to be, not just from your shell.
Did you put it in your script file before you ran the java process?
Also try nohup and & your java program inside your script. See if that gives you more info in the nohup.out or something. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Nigelg |
Posted: Tue Jun 21, 2005 8:18 am Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
You have to set this env var in the shell you start the trigger monitor from, i
i.e. stop the trigger monitor, either by get inhibiting the initq, killing the process, or ending the qmgr, set and export the env var, then restart the trigger monitor. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jun 21, 2005 8:31 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Also, maybe a mod can move this to a more useful forum. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
vennela |
Posted: Tue Jun 21, 2005 10:53 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
jefflowrey wrote: |
Also, maybe a mod can move this to a more useful forum. |
The three mods of this particular forum have not been visiting the forum regularly. Maybe I'll have to add this one to my list too. |
|
Back to top |
|
 |
Surfer |
Posted: Wed Jun 22, 2005 5:02 am Post subject: |
|
|
 Apprentice
Joined: 14 Jun 2002 Posts: 31
|
I did that. I exported the variable at the script execution just before my application hangs, nohup and also the "&".
Thank you all of you. |
|
Back to top |
|
 |
|