|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Data Conversion Exit DLL not found |
« View previous topic :: View next topic » |
Author |
Message
|
cheanfeiy |
Posted: Mon Jun 30, 2003 6:32 pm Post subject: Data Conversion Exit DLL not found |
|
|
Apprentice
Joined: 21 Jun 2003 Posts: 26
|
I've compiled a data conversion exit program called MYFORMAT.dll for W2K. When I put the msg into a local queue, i did specify the Format in MQMD object to be MYFORMAT. I located MYFORMAT.dll under ..\MQSEries\Exits folder. However, when I try out the simple mqget command, MQSeries keep complaining "The library C:\program files\IBM\MQSeries\Exits\MYFORMAT.dll was not
found. The queue manager will continue without this module.". In fact, I've MYFORMAT.dll file in that path.
Why ??? Could anyone please help to explain this?  |
|
Back to top |
|
 |
mrlinux |
Posted: Tue Jul 01, 2003 9:30 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
Without seeing the source and knowing how it was compiled it will be very diffcult to answer this one _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
cheanfeiy |
Posted: Wed Jul 02, 2003 2:50 am Post subject: |
|
|
Apprentice
Joined: 21 Jun 2003 Posts: 26
|
I not sure how MQSeries handle the data conversion exit DLL. After restart MQSeries service, it seems like it able to find the DLL file. Can some provide some guidance on how to make a function call in data conversion exit DLL?
Assume below is the function created by CRTMQCVX command:
MQLONG ConvertTEST(
PMQBYTE *in_cursor,
PMQBYTE *out_cursor,
PMQBYTE in_lastbyte,
PMQBYTE out_lastbyte,
MQHCONN hConn,
MQLONG opts,
MQLONG MsgEncoding,
MQLONG ReqEncoding,
MQLONG MsgCCSID,
MQLONG ReqCCSID,
MQLONG CompCode,
MQLONG Reason)
{
MQLONG ReturnCode = MQRC_NONE;
MQCHAR szP = 'A';
MQCHAR szQ = 'z';
ConvertChar(5); /* ID */
if(validate(in_cursor, BLOCK_SIZE) == 0)
return (MQRC_FORMAT_ERROR);
ConvertChar(50); /* MSG */
Fail:
return(ReturnCode);
}
FYI, validate is another function defined in another DLL. Having the validate function being commented, data conversion exit works fine. However, MQSeries return "MQGET ended with reason code 2110" if the validate function is enable. why???
please provide some guidance and advice |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jul 02, 2003 5:47 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Quote: |
FYI, validate is another function defined in another DLL. Having the validate function being commented, data conversion exit works fine. However, MQSeries return "MQGET ended with reason code 2110" if the validate function is enable. why??? |
It sounds like validate is failing and causing your code to return 2110, or at least returning an error code back to the MQSeries system that is causing it to return 2110.
So you probably have a bug in validate. |
|
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
|
|
|
|