Code Monkey home page Code Monkey logo

apiconnect-policy-mqinvoke's Introduction

User Defined Policy allowing API Connect to interact with MQ

https://www.ibm.com/developerworks/library/mw-1611-hutchinson-trs/index.html

The purpose of this tool is to use a custom policy to integrate an instance of API Connect with an MQ Queue Manager.

How do I use it

• Pull this repository down onto your machine
• Run the build script against the policy folder

charlottehutchinson@CharlottesMBP2:~/APIConnect-MQ-UDP$ sh package_dp_policy.sh -d mqinvoke-source/

• In an API Connect catalog visit settings/policies
• Select the zip file that is created by the build process to import to API Connect 

MQ UDP

#####Queuemanager This variable should be set to the name value for the IBM MQ Queue Manager Object or IBM MQ Queue Manager Group Object in IBM Datapower.

#####Queue This variable should be set to the name of the desired request queue within the queue manager selected above.

#####Replyqueue This variable should be set to the name of the desired reply queue within the queue manager selected above. If the message flow is not intended to be synchronous this value should be left null or “”

#####Backoutq If needed, this variable should be set to the name of the desired back out queue within the queue manager selected above. If set to null or “” the policy will not place bad messages onto the backout queue. The backout queue must be defined here and not in the datapower MQ object.

#####Timeout The time, in milliseconds, after which the policy will declare the queue manager unreachable, returning a 408 timeout reached response code.

Policies guidelines

Each policy should have it's own subdirectory within this directory
The subdirectory should share the name of the custom policy (as defined in the policy.yaml name attribute)
Each policy folder should contain all the constituent files AND a .zip file for import into API Connect
The policy subdirectory should have the following structure
    mypolicy
    |
    ⌊ --> implementation
    |          |
    |          ⌊ --> {implementation files/folders}
    |
    ⌊ --> mypolicy.yaml

The build script

To produce a valid zip file please run the following commmand sh build.sh . mqinvoke

apiconnect-policy-mqinvoke's People

Contributors

charlottehutchinson avatar chrisphillips-cminion avatar jackdunleavy avatar

Stargazers

 avatar  avatar Rodrigo Tsuru avatar David Seager avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

apiconnect-policy-mqinvoke's Issues

Zip: command not found

When i'm trying to execute the command 'sh build.sh . mqinvoke' using 'Git bash here', getting zip : command not found error. So zip is not supported by Git bash? how to resolve the issue.

Unable to run the build script

Hi Team,

We are unable to run the below script as this commands are not recognized. Could you please let us know where to run this command and how?

• Run the build script against the policy folder

charlottehutchinson@CharlottesMBP2:~/APIConnect-MQ-UDP$ sh package_dp_policy.sh -d mqinvoke-source/

Regards,
Arathi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.