Using the WebSphere message Broker API to write messaging flow patterns

Source: Internet
Author: User
Keywords WebSphere writing messages

A pattern is a reusable solution to a http://www.aliyun.com/zixun/aggregation/17253.html > FAQ in a given context. Creating schemas for complex reusable message flows is imperative so that customers can reuse the message flow in different scenarios by simply changing some configuration values. A pattern provides a reusable solution that encapsulates a tested method to complete a common schema, design, or deployment task in a particular context. When deciding to use patterns, many design and development efforts are actually done, which can reduce your development, testing, and operational work, saving time and money.

Ibm®websphere®message Broker V8 extends the message Broker Java™api and supports the modification of user-defined pattern instances or the development of new messaging applications using Java code. Previously, you had to develop a messaging application using message Broker Toolkit, but the new Java API allows you to develop message flows using the Java IDE without using the Toolkit.

WebSphere message Broker API

The message Broker API is a programming interface that allows applications to control agents and their resources through a remote interface. The message Broker API is also known as the revisit Manager Proxy (CMP) API. Revisit Manager has been removed from the V7, and the full name of the API has changed, but the terminology CMP application and CMP APIs remain in the information center, which refers to the message Broker API, This is done to achieve continuity and consistency with the JAR file Configmanagerproxy.jar, which provides the required classes. Figure 1 below shows the packages provided in Configmanagerproxy.jar, and the packages in the red circle provide the message Broker API class.

Figure 1. Java Packages in Configmanagerproxy.jar

The Message Broker API contains only the Java implementation content and is referred to as the information broker Java API. Through a set of Java classes that make up CMP, user applications have complete access to various agent functions and resources. Use the CMP API to interact with the agent to perform the following tasks:

Create and modify message Flow application Deployment BAR File Change agent configuration property creation, modify and delete execution group queries and set the status of agents and their associated resources, and receive notification if the following state changes occur: the deployed files used by the execution group's deployed message flow messages (such as JAR files) View the admin Log view activity log

For applications that interact with message broker, the Java class is logically located between the user application and message broker, in the JVM of the user application. To achieve connectivity, the API needs to use WebSphere MQ Classes for Java. As shown in Figure 2, the message Flow mode program is a powerful user application that initializes an instance of a message flow based on the schema definition:

Figure 2. Message Broker API

Scene

As shown in the figure below, Jkretail is a large American retailer with many malls (red pins) in the United States and a central office located in Nebraska State (green pins):

Figure 3. Jkretail's Mall and center office.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.