|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ Server exit in AIX/C++ |
« View previous topic :: View next topic » |
Author |
Message
|
mq_blr |
Posted: Tue Dec 16, 2008 2:01 am Post subject: MQ Server exit in AIX/C++ |
|
|
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 |
|
 |
xhaxk |
Posted: Tue Dec 16, 2008 12:40 pm Post subject: |
|
|
Apprentice
Joined: 30 Oct 2008 Posts: 31
|
exits must be written in C, not C++ |
|
Back to top |
|
 |
gbaddeley |
Posted: Tue Dec 16, 2008 2:58 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 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 |
|
 |
mq_blr |
Posted: Tue Dec 16, 2008 11:48 pm Post subject: |
|
|
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 |
|
 |
mvic |
Posted: Wed Dec 17, 2008 4:03 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|