|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Channel Exit and LIBPATH (AIX) |
« View previous topic :: View next topic » |
Author |
Message
|
cheanfeiy |
Posted: Mon Dec 01, 2003 10:39 pm Post subject: Channel Exit and LIBPATH (AIX) |
|
|
Apprentice
Joined: 21 Jun 2003 Posts: 26
|
I've wrote a channel exit program which uses a shared library created by me too. I put the shared library under /temp/abc and have set the LIBPATH environment variable by specifying LIBPATH=/temp/abc:$LIBPATH. However, when I start the channel, MQSeries reported it can't load the channel exit program and the channel was in retrying status. But, if I put my shared library into /usr/lib or /usr/mqm/lib, the channel exit program loaded successfully and the channel started.
I also wrote a small exit program to get the current environment variables' value but it happens that the LIBPATH environment variable is not exist at all???
Does anyone also experienced the same scenario?? Please help. Thanks in advance. |
|
Back to top |
|
 |
dgolding |
Posted: Mon Dec 01, 2003 11:45 pm Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
Hi, I'm not an AIX expert but your setting the LIBPATH variable in your environment, is to be brutally honest, useless.
You need to set the variable in the environment of the queue manager, as this starts the channel. As it has no .profile or startup script, you can't change that. You MIGHT get away with changing /etc/profile, but this seems an overkill - you've chnaged EVERYBODY'S environment.
What's wrong with putting it in /usr/lib? AFAIK you could just link it to another location anyway?
HTH |
|
Back to top |
|
 |
markt |
Posted: Tue Dec 02, 2003 1:02 am Post subject: setuid |
|
|
 Knight
Joined: 14 May 2002 Posts: 508
|
Channel programs are setuid. Therefore LIBPATH is ignored. |
|
Back to top |
|
 |
cheanfeiy |
Posted: Wed Jan 07, 2004 5:47 pm Post subject: Channel Exit and LIBPATH (AIX) - Solved |
|
|
Apprentice
Joined: 21 Jun 2003 Posts: 26
|
I think the only solution will be putting my shared libraries under /usr/lib or /usr/mqm/lib directory |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|