Wednesday, January 22, 2014

Publish/subscribe using the WebSphere MQ bridge for HTTP

WebSphere® MQ bridge for HTTP uses the WebSphere MQ classes for JMS publish/subscribe interface. HTTPPOST creates a publication. HTTP DELETE creates a non-durable managed subscription. You must configure publish/subscribe for JMS before using the topic URI.
Publish/subscribe is fully integrated into WebSphere MQ in version 7. Before version 7, a separate publish/subscribe broker handled publications and subscriptions. It is called "queued" publish/subscribe, to distinguish it from the fully integrated publish/subscribe in version 7. Version 7 emulates queued publish subscribe using integrated publish/subscribe. The emulation enables existing queued publish/subscribe applications to coexist with integrated applications running on the same queue manager. Queued publish/subscribe applications can also interoperate with integrated applications, sharing the same topics. In version 6, the broker was shipped with WebSphere MQ; before version 6 it was available as a SupportPack.

Configuration

The WebSphere MQ bridge for HTTP uses the JMS interface to publish and subscribe. In version 7, you can control whether the WebSphere MQ classes for JMS use queued or integrated publish/subscribe, using thePROVIDERVERSION JMS property.
An additional consideration is that you can use either WebSphere MQ client libraries with WebSphere MQ bridge for HTTP, or server libraries. Version 6 client libraries only support queued publish/subscribe, whereas version 7 libraries support both queued and integrated publish/subscribe. Most Web or application servers that use WebSphere MQ as a messaging provider do so using client libraries. In order to use integrated publish/subscribe, both the WebSphere MQ client and server libraries must be at least at version 7. If either is running an earlier version of WebSphere than 7, then you must configure queued publish/subscribe; see Table 1. Check what libraries are installed or configured with the Web server or application server you are using.
Table 1. Publish/subscribe configuration modes
Client V6 or earlierClient V7 or later
Server V6 or earlier
  1. Run the\java\bin\MQJMS_PSQ.mqscscript
Not supported
Server V7 or later
  1. Run the\java\bin\MQJMS_PSQ.mqscscript
  2. Set the queue manager toPSMODE=ENABLED
  1. If PROVIDERVERSION = 7
    1. Set the queue manager toPSMODE=ENABLED or PSMODE=COMPAT
  2. If PROVIDERVERSION = 6
    1. Set the queue manager toPSMODE=ENABLED

Publish

Send an HTTP POST request with the URI:
http://hostname:port/context_root/msg/topic/topicString
The message contents are published using the topic string topicString.

Subscribe

Send an HTTP DELETE request with the URI:
http://hostname:port/context_root/msg/topic/topicString
WebSphere MQ bridge for HTTP creates a managed non-durable subscription to the topic string topicString. The subscription is deleted as soon as a publication is returned, or until the wait-interval set by the custom entity-header, x-msg-wait, expires.

4 comments:

oakleyses said...

louis vuitton handbags, oakley sunglasses, louboutin, longchamp outlet, nike shoes, louis vuitton outlet stores, chanel handbags, burberry outlet, prada outlet, jordan shoes, tiffany and co, michael kors outlet, tory burch outlet, louis vuitton outlet, longchamp handbags, nike free, true religion jeans, michael kors outlet, kate spade outlet, polo ralph lauren outlet, tiffany and co, prada handbags, polo ralph lauren outlet, michael kors outlet, michael kors outlet, longchamp handbags, oakley sunglasses, ray ban sunglasses, kate spade handbags, burberry outlet, louis vuitton outlet, louboutin outlet, louboutin, coach factory outlet, air max, air max, coach outlet, gucci outlet, christian louboutin shoes, michael kors outlet, coach purses, ray ban sunglasses, michael kors outlet, louis vuitton, coach outlet store online, true religion jeans, oakley sunglasses cheap

oakleyses said...

ralph lauren, lululemon, air max, hollister, north face, nike air max, polo lacoste, vanessa bruno, timberland, vans pas cher, louboutin, louis vuitton, oakley pas cher, air max pas cher, nike roshe run, air max, true religion outlet, barbour, sac longchamp, air force, hollister, sac louis vuitton, nike free, polo ralph lauren, nike trainers, louis vuitton uk, nike roshe, sac hermes, longchamp, michael kors, sac burberry, sac guess, mulberry, new balance pas cher, converse pas cher, sac louis vuitton, hogan outlet, nike tn, north face, true religion outlet, ray ban pas cher, michael kors, air jordan, nike blazer, nike free pas cher, michael kors pas cher, abercrombie and fitch, ray ban sunglasses

oakleyses said...

mac cosmetics, mont blanc, marc jacobs, canada goose outlet, nike huarache, vans shoes, soccer jerseys, hollister, giuseppe zanotti, beats by dre, abercrombie and fitch, longchamp, insanity workout, celine handbags, bottega veneta, ghd, nfl jerseys, north face outlet, chi flat iron, ugg boots, birkin bag, ugg australia, canada goose, herve leger, ugg pas cher, rolex watches, valentino shoes, canada goose uk, canada goose, ferragamo shoes, canada goose, ugg boots, uggs outlet, north face jackets, soccer shoes, asics running shoes, new balance shoes, p90x, lululemon outlet, canada goose jackets, mcm handbags, instyler, babyliss pro, ugg, wedding dresses, jimmy choo outlet, reebok outlet, nike roshe run

oakleyses said...

parajumpers, karen millen, air max, converse, pandora charms, moncler, louboutin, moncler, links of london, lancel, juicy couture outlet, oakley, hollister, pandora charms, supra shoes, thomas sabo, canada goose, gucci, wedding dresses, timberland boots, swarovski crystal, air max, coach outlet store online, moncler, ray ban, canada goose, moncler, ugg, louis vuitton, swarovski, hollister, montre homme, moncler, hollister clothing store, ralph lauren, rolex watches, moncler outlet, moncler, iphone 6 cases, baseball bats, juicy couture outlet, toms shoes, vans, pandora jewelry, ugg, converse shoes