IBM WebSphere MQ Basic ConceptsBasic concepts1. Queue ManagerThe queue Manager, as its name implies, is the management of Message Queuing, which ensures that messages in the queue are sent to the correct receive queue, or that messages are delivered to another queue manager. The Queue Manager generates the appropriate completion code for each invocation or command.The tasks that the Queue Manager performs are:
Start Channel
Handling MQI C
provides a centralized management platform for controlling messages and application frameworks. It captures and displays MQ events and discovers new queue managers and corresponding objects. These objects can be defined and configured on the central console. In addition, many third-party manufacturers provide similar management tools.
In addition to the above three management methods, MQ also provides a system management programming interface through which users can write applications for auto
entering the order system via the Web), these applications should not disappoint customers. For example, having a long wait for a customer during an order process can make the customer very frustrated. In a messaging environment, this delay is reduced because the message is not sent directly to the application but is placed in the queue. Once the message is submitted to WebSphere MQ, the app resumes interaction with the user.
Ø Secure Messaging-the ability to use high-level security to transfer
interface (mqi ). On the IBM WebSphere MQ server, the JMS binding method is mapped to mqi. As shown in 3, the application directly communicates with its local queue manager by using mqi. mqi is a group of calls that require the queue manager to provide services. What's striking about
. It is similar to an address pointer pointing to a destination queue on a remote host. It is just a definition and does not really occupy disk storage space.
Template queue and dynamic queue are a special feature of MQ. A typical purpose of them is to consider the scalability of the system. We can create a template queue. When a new queue needs to be added in the future, MQ automatically generates a dynamic queue every time a template queue is opened, we can also specify this dynamic queue as a
application interface. The application uses the mq api (Message Queue interface MQI) function to communicate with the queue manager (the program at the MQ runtime. When the queue manager is working, it needs to use objects such as queues and channels. The queue manager is also an object. Figure 1 shows the running time of the MQ application.
Figure 1 MQ1 at runtime
A message is an information unit. It consists of two parts: application data sent
queue we can delete it while shutting it down, instead, if it is a permanent queue, We can keep it forever and use it for me.
4) Channel
A channel is a conduit for passing messages between queue managers in an MQ system, a logical concept built on top of a physical network connection, and the essence of MQ products.
In MQ, there are three main classes of channel types, the message channel, the MQI channel, and the cluster channel. Message channels ar
or a permanent queue, and if it is a temporary queue we can delete it while closing it, instead, if it is a permanent queue, We can keep it forever, for my own use.
4) Channel
A channel is a conduit for sending messages between queue managers in an MQ system, a logical concept built on a physical network connection, and the essence of MQ products.
In MQ, there are three main types of channel, namely Message Channel, MQI Channel and cluster channel. T
. On the contrary, if it is a permanent queue, we can keep it permanently for my use.
4) Channels
A channel is a pipeline for passing messages between queue managers in the MQ system. It is a logical concept built on a physical network connection and is also the essence of MQ products.
In MQ, there are three main channel types: Message channel, mqi channel, and cluster channel. The message channel is used to transmit messages between the MQ server and
essence of MQ products. In MQ, there are three main classes of channel types, the message channel, the MQI channel, and the cluster channel. Message channels are used to transfer messages between MQ servers and servers, it is emphasized that the channel is one-way, it has send (sender), receive (receive), requestor (requestor), service (server) and other different types, For use by users in different situations. The
ace_message_queue_iterator: Next () method returns a non-0 result and sets the pointer to be passed in. Otherwise, 0 is returned directly. The advance () method moves the current traversal position to the next block (if any ).
Listing 31.6. Example of using ace_message_queue_iteratorCode
Void simpletcpreceiver: processqueue (){Ace_message_queue_iterator Ace_message_block * MB;For (; mqi. Next (MB);
scalability consideration. We can create a template queue, when new queues are needed in the future, MQ automatically generates a dynamic queue each time a template queue is opened, and we can specify that the dynamic queue is either a temporary queue or a permanent queue, and if it is a temporary queue we can delete it while closing it, instead, if it is a permanent queue, We can keep it forever, for my own use.
4) Channel
A channel is a conduit for sending messages between queue managers in a
client or server encoding Character Set Identifier (ccsid)
The client code assumes that the mqi character data in the client is located in the ccsid configured by the machine. If this ccsid is not supported or is not required, you can overwrite it with the mqccsid environment variable. For example, on Windows:
SET MQCCSID=850
Or, on a UNIX system:
export MQCCSID=850
The ccsid of the queue manager on my server is 950.
Therefore, use the command
:
The ability to limit the applications for which tracing is run. For example, you can specify the application to be tracked by specifying Applname in the Applicationtrace section. Because the WebSphere MQ V7.5 Java client currently contains the real application name rather than the Java-oriented general-purpose WebSphere MQ client, there is more flexibility in tracking Java applications now.
Select to include message data in the application Activity Trace message.
The ability to configure th
server, the client uses the MQ dynamic link library to develop or adopt the appropriate adapter, through the MQI, or the JMS interface accesses the message queue on the WebSphere MQ server. As shown in the following figure. Figure 9 MQ client/server application
Application Integration LayerThe application integration layer is implemented primarily through the IBM WebSphere message broker, which uses the reliable messaging service provided by WebSpher
WebSphere MQACTIVEMQ
WebSphere MQ
1, the middleware in the application software and system software, is a complex in exchange for enterprise application simplification of the reusable basic software, it uses the system software provided by the basic services (functions), connecting the network application system of various parts or different applications, to achieve resource sharing, The purpose of feature sharing. 2, Three kinds of communication technology:RPC (Remote process Ca
C # Use of IBM websphere MQ,
1. Common terms about websphere MQ (for Websphere MQ7.5)
Queue Manager: a program that provides message passing services for applications. Applications using the Message Queue interface (MQI) can place messages in the queue and obtain messages from the queue. The Queue Manager ensures that messages can be sent to the correct queue or transmitted to another queue manager.
Local queue: the location where the queue manager re
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.