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 » IBM MQ API Support » Problem with API Exits

Post new topic  Reply to topic
 Problem with API Exits « View previous topic :: View next topic » 
Author Message
Balmer
PostPosted: Wed Jul 09, 2003 2:18 pm    Post subject: Problem with API Exits Reply with quote

Novice

Joined: 19 Jun 2003
Posts: 13

hi all,
I'm working on API exits which is new in WMQ 5.3.

WMQ version --- WMQ 5.3.0.2 with CSD04.
SunOS sunserv0011 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-Enterprise

when I configured the sample API exit amqsaxe i.e in /opt/mqm/samp/bin with the following configuration, it's working fine.

Configuration in qm.ini file:

[b]ApiExitLocal:
Sequence=100
Function=EntryPoint
Module=/opt/mqm/samp/bin/amqsaxe
Name=SampleApiExit [/b]


[b]export MQAPI_TRACE_LOGFILE=/var/mqm/trace/ApiTrace
export MQAPI_TRACE_OPTIONS=16 [/b]


but when I try to customize that, I'm successfully compiled my code with the following options and made an exe without any errors.

Compilation Steps:

[b]export LIB=/opt/mqm/lib:.:$LIB

export PATH=/opt/app/SUNWspro/bin:$PATH

export MANPATH=/opt/app/SUNWspro/man:/usr/man:$MANPATH

export LD_LIBRARY_PATH=\
/opt/app/SUNWspro/lib:/$OPENWINHOME/lib:$LD_LIBRARY_PATH

cc -KPIC -mt -o amqsaxe.o amqsaxe0.c -I/opt/mqm/inc -L/opt/mqm/lib -dy -G -lmqmzf -lmqm -lmqmcs -lmqmzse


ld -L$LIB -dy -G -lmqmzf amqsaxe.o -o amqsaxe [/b]

b
ut when I try to use the exe that I made...... I 'm getting the following error.

[b]Error : AMQ7214: The module for API Exit 'SampleApiExit' could not be loaded.[/b]

Can anyone tell me why ???

Thanks
Balmer
Back to top
View user's profile Send private message
harwinderr
PostPosted: Tue Sep 02, 2003 12:19 am    Post subject: Reply with quote

Voyager

Joined: 29 Jan 2002
Posts: 90

Hi
Your LD_LIBRARY_PATH should include the path to the directory in which you have built your exit library. So if you have the exit library in /home/user1 then you need to do this.
$export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/user1

Hope this helps

Later,
HR
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Problem with API Exits
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.