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 » User Exits » MQ Server exit in AIX/C++

Post new topic  Reply to topic
 MQ Server exit in AIX/C++ « View previous topic :: View next topic » 
Author Message
mq_blr
PostPosted: Tue Dec 16, 2008 2:01 am    Post subject: MQ Server exit in AIX/C++ Reply with quote

Apprentice

Joined: 30 Sep 2005
Posts: 49
Location: Brisbane,Australia

Hi Friends,

We trying to security exit in AIX using C++ with xlc++ compiler we are getting the following error

Command we used
xlc++ -G -v -o libGIOMQExit test1.o test2.o -bexpall
-bM:SRE -e MQStart -q64 -qchars=signed -I/usr/mqm/inc -L/usr/mqm/lib64 -limqb23i
a -limqs23ia

Any clues??

16.12.08 12:05:44 - Process(602130.39) User(mqm) Program(amqrmppa)
AMQ6188: The system could not dynamically load the shared library
'/var/mqm/exits64//xxxx as the entry point to the library, symbol
'MQStart', could not be located within the library. The queue manager will
continue without this library.
EXPLANATION:
This message applies to AIX systems. The shared library
'/var/mqm/exits64//xxxx failed to load correctly due to a problem with
the library.
ACTION:Check that the entry point to the library, symbol 'MQStart', exists and has
been exported from the library.
----- amqxufnx.c : 1160 -------------------------------------------------------
16.12.08 12:05:44 - Process(602130.39) User(mqm) Program(amqrmppa)
AMQ9535: User exit not valid.
Back to top
View user's profile Send private message
xhaxk
PostPosted: Tue Dec 16, 2008 12:40 pm    Post subject: Reply with quote

Apprentice

Joined: 30 Oct 2008
Posts: 31

exits must be written in C, not C++
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Tue Dec 16, 2008 2:58 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2495
Location: Melbourne, Australia

The exits needs a dummy entry point called MQStart. I suggest you have a careful read of the WMQ Intercommunication manual to get a good understanding of MQ exits and how to compile them.
_________________
Glenn
Back to top
View user's profile Send private message
mq_blr
PostPosted: Tue Dec 16, 2008 11:48 pm    Post subject: Reply with quote

Apprentice

Joined: 30 Sep 2005
Posts: 49
Location: Brisbane,Australia

Thanks for the reply Glenn .

Just want to confirm whether we can write security exit using C++ in AIX or we have to use C only in AIX .
Back to top
View user's profile Send private message
mvic
PostPosted: Wed Dec 17, 2008 4:03 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

mq_blr wrote:
Just want to confirm whether we can write security exit using C++ in AIX or we have to use C only in AIX .

Your channel exits get loaded into MQ's channel programs. Those programs are written in C and do not have any C++ runtime loaded. So, though I am guessing a bit here, I think any C++ runtime facilities needed by the C++ code in your exit would fail to work because of the absence of a C++ runtime in the process.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » User Exits » MQ Server exit in AIX/C++
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.