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 IBM MQ Support » sample API Exit error on windows

Post new topic  Reply to topic
 sample API Exit error on windows « View previous topic :: View next topic » 
Author Message
prince_mq
PostPosted: Thu Jun 21, 2007 7:10 am    Post subject: sample API Exit error on windows Reply with quote

Voyager

Joined: 10 Aug 2006
Posts: 76

Hi,

I am using MQ5.3 on windows. I am getting the following error when i am trying to compile the sample API exit "amqsaxe0" supplied by IBM.


6/21/2007 15:48:46
AMQ7214: The module for API Exit 'amqsaxe' could not be loaded.

EXPLANATION:
The module 'C:\Program Files\IBM\WebSphere MQ\Exits\amqsaxe.dll' for API Exit
'amqsaxe' could not be loaded for reason xecU_I_FUNCTION_NOT_FOUND.
ACTION:
Correct the problem with the API Exit module 'amqsaxe'.


my compilation command is as follows:

> cl -c -W3 -Gs- -Z7 -Od -nologo -LD -D_X86_=1 -DWIN32 -D_WIN32 -D_MT -D_DLL amqsaxe0.c
> lib -out:amqsaxe.lib -def:amqsaxe.def -machine:i386
> link -nod -nologo -debug:full -dll @amqsaxe.link -out:amqsaxe.dll

my amqsaxe.def file looks like:
LIBRARY AMQSAXE

DESCRIPTION 'Sample Api Exit'

EXPORTS
EntryPoint
MQStart


My amqsaxe.link looks like:

amqsaxe0.obj
amqsaxe.exp
mqm.lib mqmzf.lib
msvcrt.lib oldnames.lib kernel32.lib user32.lib


Please let me know if you have any inputs for this error.

Thanks in Advance,
Prince
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Jun 21, 2007 7:13 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Did you put amqsaxe.dll in C:\Program Files\IBM\WebSphere MQ\Exits?

Did the compile complete successfully?

Did the link complete successfully?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
prince_mq
PostPosted: Thu Jun 21, 2007 7:27 am    Post subject: Reply with quote

Voyager

Joined: 10 Aug 2006
Posts: 76

Yes Jeff, I am able to compile and link succesfully.

I have placed .dll file in C:\Program Files\IBM\WebSphere MQ\Exits.

in Mq Services, on "exits" property of my queue manager,

Name is given as: amqsaxe
Function is given as: EntryPoint
Module is given as: C:\Program Files\IBM\WebSphere MQ\Exits\amqsaxe.dll
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Jun 21, 2007 7:44 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Is "EntryPoint" the name of the entry point in the code?

try using the short path to the DLL in the Module, or just use "amqsaxe" as well - assuming that 'C:\Program Files\IBM\WebSphere MQ\Exits" is the default exit path.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
prince_mq
PostPosted: Thu Jun 21, 2007 7:58 am    Post subject: Reply with quote

Voyager

Joined: 10 Aug 2006
Posts: 76

EntryPoint is entry for my program.

I have used the short cut as said, but i was not succesful to get this loaded!!
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jun 21, 2007 8:04 pm    Post subject: Reply with quote

Grand High Poobah

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

prince_mq wrote:
EntryPoint is entry for my program.

I have used the short cut as said, but i was not succesful to get this loaded!!
Have you tried using the old 8 char type path definition:
c:\progra~1\ibm ... etc...

There is a dos command option of dir that shows you the directory in that form...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
prince_mq
PostPosted: Thu Jun 21, 2007 11:42 pm    Post subject: Reply with quote

Voyager

Joined: 10 Aug 2006
Posts: 76

Hi fjb,

I tried the option as u said but couldn't make it work. Its still giving the same error. The same program got compiled on AIX. But I am not able to get it work in windows. I guess it is bcoz of incorrect compilation steps.
If some one has any inputs, please let me know

Thanks,
Prince
Back to top
View user's profile Send private message
oz1ccg
PostPosted: Fri Jun 22, 2007 7:01 am    Post subject: Reply with quote

Yatiri

Joined: 10 Feb 2002
Posts: 628
Location: Denmark

Prince, how have you specified the exit in your queue manager ??

Function=EntryPoint

Let us see your configuration

I think the easiest way is using regedit and locate:
ApiExitLocal, ApiExitCommon and ApiExitTemplate

You did specify:
NAME: Something_usefull
Function=EntryPoint
Module=amqsaxe


-- Lock it or Lose it --
_________________
Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » sample API Exit error on windows
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.