WebSphere mq&&active MQ

Source: Internet
Author: User

WebSphere MQ&&ACTIVEMQ

    • 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 Call): synchronous;

Cpi-c: synchronization;

MQI (Message Queue Interface): asynchronous communication mode, which communicates in a manner unrelated to the delivery protocol.

3, middleware Products:

Message Middleware: IBM WebSphere MQ

Trading Middleware: IBM Cics,bea Tuxedo

Object Middleware: IBM Componentbroker,ionaorbix,borland,visibroker

Application Server: IBM Websphere,bea WebLogic

Security Middleware:entrust

Application Integration Server:LSS flowwan,ibm Flowman,vitria Businessagiliti

4. WebSphere MQ consists of a message transmission system and an application interface, and the resources are messages and queues;

Message transfer system: Used to ensure the delivery of messages between queues, including the delivery of messages between remote queues on different systems in the network, and to ensure that network failure or post-shutdown recovery;

application interfaces: between the application and the messaging system through WebSphere MQ API implementation (API is consistent across all WebSphere MQ platforms,API only calls 2 actions (send put and receive get))

message: Request message,reply message,report Message,datagram Message

A message contains two factors: a message description and a data message

Message description: Used to define, such as message transmission destination

Data messages: such as application data or database queries

Queues: A secure place to store messages, where messages are stored in order, queues are messages staged and received, because messages are stored in queues, so applications can run independently of each other at different speeds, at different times, at different locations;

Note: Communication between programs is done by passing messages rather than invoking the program directly; The most basic and important technology of WebSphere MQ-Reliable message transfer with special technology to prevent message recurrence, ensuring that messages are delivered once and only once (once-and-only-once)

5. Important features:

Unified Interface: Transparency of target application locations (target application location transparency);

Handling time-not-dependent restrictions: Asynchronous processing

provide robust middleware for distributed processing: Ensure data consistency, information transmission (once-and-only-once), and timely recovery in the case of system failure, the business will not be affected

Section:

WebSphere MQ is a middleware based on message queue or message queuing messagepassing, the main function is to transfer messages between applications, which can be used in different network protocols, Different computer systems and different application software transmission between, using it can be easily and conveniently developed a reliable and efficient distributed application system;

WebSphere technology can be implemented on a wide range of IBM and non- IBM platforms, providing a business-oriented information Technology architecture ( WebSphere MQ -based applications that can be approached to simulate business issues, Easier to design, develop, and maintain), so that applications based on it have no structural limitations, and applications can be a pair of one or one-to-many, many-to-many relationships, where information transfer between applications can be one-way or two-way, flexible architecture that supports balanced workloads, concurrent processing, multicast, and other application relationships. The bottom line is that the application is sufficiently close to the business requirements, andthe structure of WebSphere MQ can easily change as the application needs change.

    • Active MQ:

1, Active MQ is the implementation of open source JMS , some features: multiple languages and protocols written, full support for JMS and java EE versions; Ajax supported (asynchronous application), adjusted information persistence, and so on.

2, message producer-"Message Queue"-"consumer

JMS (Java Message Service): MOM (messageoriented middleware message-oriented middleware ), applications reliably transmit and receive messages in asynchronous situations

Message producer: Messaging producer

JMS provider: Message provider (broker)

JMS Consumer: Consumer (recipient)

JMS Message delivery mode:

Point-to-point mode:Peer, each message can only be received by one recipient; Each message is either taken away from the queue by the receiver or deleted by the JMS Provider in time-out; the recipient does not necessarily exist when the message is generated. The recipient can take the message at any time the message is generated;

Publish / Subscribe mode: The sender is the publisher, the recipient is the Subscriber, a message can have many recipients, the Subscriber can only receive the message in the topic it subscribes to, the Subscriber must be active when the message is sent, and ready to receive the message, otherwise it will miss the message.

the composition of the JMS message: the header (header), theproperty, the body of the message(body): Bytemessage,mapmessage, Streammessage,textmessage,objectmessage.

3. Install (you must install the JDK (javadevelopment kit) before you can mount Active MQ):

#mkdir/usr/java

#tar zxvf/usr/src/jdk-8u51-linux-x64.tar.gz-c/usr/java/

#cd/usr/java/

#ln-S JDK1.8.0_51/USR/JAVA/JDK

#ls -L (see if the link is correct)

#vim/etc/profile.d/java.sh

Java_home=/usr/java/jdk

Export Java_home

Export path= $PATH: $JAVA _home/bin: $JAVA _home/jre/bin

#source/etc/profile.d/java.sh

#java-version

#javac-version (with correct result output, the environment is configured correctly)

#tar zxvf/usr/src/apache-activemq-5.12.0-bin.tar.gz-c/usr/java/

#cd/usr/java/

#ln-S APACHE-ACTIVEMQ-5.12.0/USR/JAVA/ACTIVEMQ

#ll (see if the soft link is correct)

#vim/usr/java/activemq/conf/activemq.xml (master configuration file, this file optimizes configuration, such as the undo storage policy,broker 's memoryusage thresholds , Configuration Monitoring ip<transportconnectors> segment, etc.)

#/usr/java/activemq/bin/activemq Start|stop

#netstat Lntup | Egrep "61616|8161"

#ps-ef | grep ACTIVEMQ

#pkill Java

Http://localhost:8161/admin (Browser login, available graphical management, first login username password are admin)


This article is from the "Linux operation and maintenance of difficult learning notes" blog, declined reprint!

WebSphere mq&&active MQ

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.