Author |
Message
|
melissa |
Posted: Wed Jun 07, 2006 3:19 am Post subject: How doing MQOPEN |
|
|
Novice
Joined: 06 Jun 2006 Posts: 19
|
Hello,
someone know how to launch MQOPEN on aix and sun hosts ???
Mélissa |
|
Back to top |
|
 |
Mr Butcher |
Posted: Wed Jun 07, 2006 3:21 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
yes....
do you mean the mqopen api call? then you have to have a program. check the application programmers guide and the application programmers reference.
or check out the samples. but you dont "mqopen" from the command line.... _________________ Regards, Butcher |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jun 07, 2006 3:24 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
I think you should concentrate your attention on the Application Programming Guide, Application Progamming Reference and the samples supplied (in /opt/mqm/samp I think?) as a first move.
Unless you're tried all that and are getting a specifc problem not covered in the estemed IBM publications? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fschofer |
Posted: Wed Jun 07, 2006 3:27 am Post subject: |
|
|
 Knight
Joined: 02 Jul 2001 Posts: 524 Location: Mainz, Germany
|
|
Back to top |
|
 |
melissa |
Posted: Wed Jun 07, 2006 3:36 am Post subject: |
|
|
Novice
Joined: 06 Jun 2006 Posts: 19
|
Once I have found the program and I know the library, what must I do? |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jun 07, 2006 3:54 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Finding the program should be quite easy - MQOPEN is an MQI call you use in your own application code!
Are you asking about the MQOPEN parameters? They're in the Reference. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
melissa |
Posted: Wed Jun 07, 2006 4:26 am Post subject: |
|
|
Novice
Joined: 06 Jun 2006 Posts: 19
|
i don't know how to use the MQOPEN code.... |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jun 07, 2006 4:33 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
melissa wrote: |
i don't know how to use the MQOPEN code.... |
This is going to pose a serious impediment to writing an MQ-aware application...
Do you mean you don't know what it does or where to use it, in which case the Application Programming Guide is your friend (hint: connect -> open -> do stuff -> close -> disconnect ) or you don't know how to use the call in terms of parameter options, in which case the Reference lays them out in some detail.
Or do you mean something else again & I have the wrong end of the wrong stick? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
melissa |
Posted: Wed Jun 07, 2006 5:46 am Post subject: |
|
|
Novice
Joined: 06 Jun 2006 Posts: 19
|
As you say it, I don't know how to use the call in terms of parameter options...Can someone please help me, I have some test to do quickly  |
|
Back to top |
|
 |
kevinf2349 |
Posted: Wed Jun 07, 2006 5:50 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Quote: |
Can someone please help me |
I don't mean to be rude but they already have. They have told you which manual you must read.
You ain't going to get anywhere without reading some of the basics and this is pretty darn basic I have to say.
If you need sample code then there is plenty out there and the MQ API calls (MQOPEN, MQCLOSE) statements are platform independant, but where the sample code is isn't...so what platform are you using? |
|
Back to top |
|
 |
melissa |
Posted: Wed Jun 07, 2006 6:50 am Post subject: |
|
|
Novice
Joined: 06 Jun 2006 Posts: 19
|
I'm using AIX and SUN platform.... |
|
Back to top |
|
 |
Mr Butcher |
Posted: Wed Jun 07, 2006 10:00 pm Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
Quote: |
I don't know how to use the call in terms of parameter options |
then the programming reference manual is your friend. it tells you what parameters to use and how to set them for the various MQ API calls.
But you should also read the application programming guide too to get some knowledge and to understand what you do.
for aix the samples are located in /usr/mqm/samp (source) and /usr/mqm/samp/bin (binaries), on solaris it is /opt/mqm/samp and /opt/mqm/samp/bin. _________________ Regards, Butcher |
|
Back to top |
|
 |
melissa |
Posted: Wed Jun 07, 2006 11:55 pm Post subject: |
|
|
Novice
Joined: 06 Jun 2006 Posts: 19
|
Thanks for the directories, but how to use this portion of code to make an MQCONN CALL please :
MQHCONN Hcon; /* connection handle */
MQLONG CompCode; /* completion code */
MQLONG Reason; /* reason code */
char QMName[50]; /* queue manager name */
strcpy(QMName,”SampleQM”);
// Connecting to the Queue Manager
MQCONN(QMName, /* queue manager */
&Hcon, /* connection handle */
&CompCode, /* completion code */
MQHCONN Hcon; /* connection handle */
MQLONG CompCode; /* completion code */
MQLONG Reason; /* reason code */
char QMName[50]; /* queue manager name */
strcpy(QMName,”SampleQM”);
// Connecting to the Queue Manager
MQCONN(QMName, /* queue manager */
&Hcon, /* connection handle */
&CompCode, /* completion code */
Mélissa |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jun 08, 2006 12:15 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
melissa wrote: |
Thanks for the directories, but how to use this portion of code to make an MQCONN CALL please :
MQHCONN Hcon; /* connection handle */
MQLONG CompCode; /* completion code */
MQLONG Reason; /* reason code */
char QMName[50]; /* queue manager name */
strcpy(QMName,”SampleQM”);
// Connecting to the Queue Manager
MQCONN(QMName, /* queue manager */
&Hcon, /* connection handle */
&CompCode, /* completion code */
MQHCONN Hcon; /* connection handle */
MQLONG CompCode; /* completion code */
MQLONG Reason; /* reason code */
char QMName[50]; /* queue manager name */
strcpy(QMName,”SampleQM”);
// Connecting to the Queue Manager
MQCONN(QMName, /* queue manager */
&Hcon, /* connection handle */
&CompCode, /* completion code */
|
I'd pick one (preferably a complete one) and plug it into a piece of source code.
Look at the samples..... _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kevinf2349 |
Posted: Thu Jun 08, 2006 5:07 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Quote: |
strcpy(QMName,”SampleQM”); |
In your sample it is looking for a queue manager named SampleQM
I still recommend reading those manuals....they are pretty useful.  |
|
Back to top |
|
 |
|