Saturday, February 22, 2014

IBM WebSphere MQ Bridge for HTTP 

This new SupportPac provides a simple way to access data on WebSphere MQ for applications that use HTTP. It bridges between MQ resources – both queues and publish-subscribe topics - and HTTP or HTTPS networks. This SupportPac requires a J2EE Application Server to provide the HTTP server-side stack and is offered without support.
Visit the WebSphere MQ SupportPac site to download and install it:

Uses for the Bridge

The WebSphere MQ Bridge for HTTP can provide simple access for Web 2.0, Web services and applications that don't require MQ clients.
HTTP Bridge Diagram
Large client environments
For those who deal with large numbers of applications that require only very simple access to WebSphere MQ, the Bridge for HTTP offers a way to connect these applications without first installing WebSphere MQ clients: "zero-client" access. This can provide:
Web 2.0
For those who want to create a rich Web experience with AJAX and REST, the Bridge for HTTP offers a simple to way to access business data from core applications to present to Web users as well as to collect data from Web applications.

Simple MQ Access

Simple AJAX commands provide a REST (Representational State Transfer) style of access to message data on WebSphere MQ queues and to topics for publishing and subscribing. The following examples show how easy it is to access MQ using AJAX (Asynchronous JavaScript and XML) commands.
Examples
Sample AJAX code and URIsresource = Queueresource = TopicWebSphere MQ API equivalent
this.XMLHttpRequest.open('GET', "http://host/msg/queue/resource");Reads next message from QueueReads next message on that topicMQGET with browse
this.XMLHttpRequest.open('POST', "http://host/msg/queue/resource");Added data as message to QueuePublishes data on that topicMQPUT
this.XMLHttpRequest.open('DELETE', "http://host/msg/queue/resource");Retrieves and removes next message from QueueReads subscription and deletes messageMQGET

3 comments: