Sign in to follow this  
Followers 0
zpanderson

Automate IBM Websphere

2 posts in this topic

#1 ·  Posted (edited)

I just wanted to check and see if anyone has done any projects involving automating IBM WebSphere MQ.

Basically what I want to do is automatically put messages onto queues.

Thanks!

Edit: A little more info.

There is an API that can be used, but it is in C/C++ and I'm not really sure if it would be possible to do this through AutoIT?

http://publib.boulder.ibm.com/infocenter/tpfhelp/current/index.jsp?topic=%2Fcom.ibm.ztpf-ztpfdf.doc_put.cur%2Fgtpc2%2Fcpp_mqput.html

Edited by zpanderson

Share this post


Link to post
Share on other sites



This is the example on the linked page.

#include <tpf/cmqc.h>
   MQBYTE  buffer[] = "THIS IS A MESSAGE";
   MQMD    md = {MQMD_DEFAULT};          /* Message Descriptor  */
   MQPMO   pmo = {MQPMO_DEFAULT};          /* Put Msg Options    */
   MQLONG  msgLength = sizeof(buffer);    /* Msg length       */
   MQHCONN Hcon;                            /* Connection Handle   */
   MQHOBJ  Hobj;                            /* Object Handle       */
   MQLONG  CompCode;                        /* completion code   */
   MQLONG  Reason;                        /* reason code         */
⋮
   md.Persistence = MQPER_PERSISTENT;
   md.MsgType    = MQMT_DATAGRAM;
   /* Hcon Hobj from previous MQCONN MQOPEN calls */
   MQPUT(Hcon, Hobj, &md, &pmo,
            msgLength, buffer, &CompCode, &Reason);
      if(Reason != MQRC_NONE)
      {
         printf("MQPUT ended with reason code %d\n", Reason);
      } else
            {
⋮
            }

I've never created .dll's or anything like that but if I were to create a .dll with cmqc.h would I then be able to use these functions in AutoIt with a dll call?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0