Author |
Message
|
angka |
Posted: Tue Sep 20, 2005 11:05 pm Post subject: Help on message exit |
|
|
Chevalier
Joined: 20 Sep 2005 Posts: 406
|
Hi all,
I am new to MQseries and I need to write a C program for message exit. Anyone here can help me out? Maybe can post a sample program of message exit in C to help me start up?
Thank you in advance
Regards,
Kian Ann |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Sep 21, 2005 3:36 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
angka |
Posted: Wed Sep 21, 2005 5:10 pm Post subject: |
|
|
Chevalier
Joined: 20 Sep 2005 Posts: 406
|
Hi,
Thanks alot for your help. Did I double post? Btw is there any available code on particularly message exit.
Regards |
|
Back to top |
|
 |
EddieA |
Posted: Wed Sep 21, 2005 6:12 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Yes
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
angka |
Posted: Wed Sep 21, 2005 11:18 pm Post subject: |
|
|
Chevalier
Joined: 20 Sep 2005 Posts: 406
|
Hi Jefflowrey,
I looked at the link on security exit u mentioned but after i compile it to dll it dun work on my machine. is there any special thing tt i need to do before compiling to dll? or is there any steps to follow to compile? pls help...
Thank You |
|
Back to top |
|
 |
EddieA |
Posted: Thu Sep 22, 2005 12:08 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
From point 6:
Quote: |
Note: If you cannot get this to work, you should give your MQ exit development project to someone else (Do not post why or complain!!). |
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
angka |
Posted: Thu Sep 22, 2005 12:53 am Post subject: |
|
|
Chevalier
Joined: 20 Sep 2005 Posts: 406
|
Hi EddieA,
Mind helping me with this or send me a link which can guide me along. I really appreciate if you can help me sort this out. Thank you.
Regards,
Kian Ann |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Sep 22, 2005 3:32 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
We can't help you sort this out.
You aren't doing your part.
You have to troubleshoot this. You have to take notes, and read the manuals, and look at the code and try and figure out what's wrong.
Then you have to try again. And take more notes, and read the manuals and look at the code, and try and figure out what's wrong.
And you have to be able to show us all of that, and show us exactly what you have done and exactly what results you've gotten, and exactly how you know it doesn't work. _________________ I am *not* the model of the modern major general.
Last edited by jefflowrey on Thu Sep 22, 2005 3:41 am; edited 1 time in total |
|
Back to top |
|
 |
hopsala |
Posted: Thu Sep 22, 2005 3:38 am Post subject: |
|
|
 Guardian
Joined: 24 Sep 2004 Posts: 960
|
from Point 2: "Test, search, test again, search again. Google is now man's best friend. USE IT. "
I just searched google for "mq message exit sample", took me 5 minutes to find 2 code samples for a message exit - a capitalware example, and a withdrawn supportpack ma06, and if I would've continued searching i'd have found more; that disregarding plethora of info on said topic and many other exit samples.
Bottom line - exits are a complex topic, I fear that no one can "guide you along", no matter how much he wishes to; take that into consideration before you even start coding.
If all else fails, and you still have probs, at least post a more exact description than "but after i compile it to dll it dun work on my machine".
(Btw, why do you need to code a message exit?) |
|
Back to top |
|
 |
angka |
Posted: Tue Sep 27, 2005 11:00 pm Post subject: |
|
|
Chevalier
Joined: 20 Sep 2005 Posts: 406
|
Hi,
Thank you. I sorted out on the configuration part.
btw any of you have sample code on inserting to MS SQL using C for message exit?
Rgds,
Kian Ann |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Sep 28, 2005 4:00 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
angka wrote: |
btw any of you have sample code on inserting to MS SQL using C for message exit? |
Inserting to MS SQL using C is no different in a message exit than it is outside of a message exit. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
angka |
Posted: Wed Sep 28, 2005 7:07 pm Post subject: |
|
|
Chevalier
Joined: 20 Sep 2005 Posts: 406
|
Hi Jefflowrey,
I try but cant get the result from the database table. Shld I include those declaration of DB library i.e "PDBPROCESS dbproc "as global variable? i tried declare it inside the MQENTRY, the channel cant start up. I tried the normal C DB program it works when I compile it as .exe.
if(dbresults(dbproc) == SUCCEED)
{
fprintf(fp,"testing");
}
the testing is not printed into the file fp. is the info enough?
Thank you.
Regards,
Kian Ann |
|
Back to top |
|
 |
angka |
Posted: Thu Sep 29, 2005 1:27 am Post subject: |
|
|
Chevalier
Joined: 20 Sep 2005 Posts: 406
|
Hi,
I encountered some problems while trying to access MS SQL server in Message Exit function. I try my SQL code in .exe format and it is able to access the database but when i put it with the Message exit function, it cant access to the database. the error given is 10003: Login incorrect and 10013: Invalid parameter in DB-Library function reference. These errors are not encountered when i try to run the code as .exe without message exit. Can you help?
Thank you
Best Regards,
Kian Ann |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Sep 29, 2005 3:15 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
angka wrote: |
I encountered some problems while trying to access MS SQL server in Message Exit function. I try my SQL code in .exe format and it is able to access the database but when i put it with the Message exit function, it cant access to the database. the error given is 10003: Login incorrect and 10013: Invalid parameter in DB-Library function reference. These errors are not encountered when i try to run the code as .exe without message exit. |
Exits are run by the MQ service user, not by who ever happens to be logged in at the time. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
angka |
Posted: Thu Sep 29, 2005 4:57 am Post subject: |
|
|
Chevalier
Joined: 20 Sep 2005 Posts: 406
|
Hi,
So you mean I need to set the user as the MQ series user? then how about 10013 error? Thank you
Regards,
Kian Ann |
|
Back to top |
|
 |
|