10个问题了解JMS

Wesley13
• 阅读 553

之前一直在对kafka做分析,越深入发现对JMS的理解要求越高,上周出差的时候去海淀买了本书慢慢补一些基础,顺道做些笔记和解释分享上来,这本书网上都有下载,java message service。最近也用过了一段时间的ActiveMQ,之后的一些内容会加入这些个MQ之间的使用体会。

1、 用在哪里?

Heterogeneous integration is one primary area where messaging plays a key role.

2、 能干什么?

Messaging also offers the ability to process requests asynchronous, providing architects and developers with solutions for reducing or eliminating system bottlenecks, and increasing end user productivity and overall system scalability.

3、 JMS和MOM的关系

Message-Oriented Middleware. JMS是规范,当然也提供基本实现,MOM是具体的实现,各个厂家可根据不同的网络协议、消息格式完成基本的功能。

4、 在企业级应用上,MOM需要达到怎样的基本要求?

Enterprise middleware products ensure that messages are properly distributed among applications. In addition, these products provide fault tolerance, load balancing, scalability, and transactional support for enterprises that need to reliably exchange large quantities of messages.

5、 RPC和JMS的区别?

While each of these solutions (JMS&RPC) has their advantages and disadvantages, only messaging provides a truly decoupled solution allowing both data and functionality to be shared across applications or sub-systems.

6、 Enterprise Messaging

A key concept of enterprise messaging is that messages are delivered asynchronously from one system to others over a network. Also, the introduction of SOA has given rise a new type of messaging product as ESB.

7、 JMS中的client

Messaging systems are composed of messaging clients and some kinds of messaging middleware server. The clients send messages to the messaging server, which then distributes those messages to other clients.

8、 Centralized Architectures & Decentralized Architectures

A message serer, also called a message router or broker.

10个问题了解JMS

All Decentralized Architectures currently use IP multicast at the network level. This system has no centralized server. Some of the server functionality (persistence, transactions, security) is embedded as a local part of client.

10个问题了解JMS

9、 Messaging Models

JMS supports two types of messaging models: P2P and pub/sub. 这里会涉及到消息的push或者pull等方式的不同,这个会根据不同的设计有不同的实现。

The P2P messaging model allows JMS clients to send and receive messages both synchronously and asynchronously via virtual channels known as queue. This model has traditionally been a pill-based or polling-based model.

The pub/sub model, messages are published to a virtual channel called a topic.

10个问题了解JMS

10、 JMS API

JMS is not a messaging system itself; it’s an abstraction of the interface and classes needed by messaging clients when communication with messaging systems.

JMS API is created by Sun Microsystems through JSR-914.

点赞
收藏
评论区
推荐文章
blmius blmius
3年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
皕杰报表之UUID
​在我们用皕杰报表工具设计填报报表时,如何在新增行里自动增加id呢?能新增整数排序id吗?目前可以在新增行里自动增加id,但只能用uuid函数增加UUID编码,不能新增整数排序id。uuid函数说明:获取一个UUID,可以在填报表中用来创建数据ID语法:uuid()或uuid(sep)参数说明:sep布尔值,生成的uuid中是否包含分隔符'',缺省为
Jacquelyn38 Jacquelyn38
3年前
2020年前端实用代码段,为你的工作保驾护航
有空的时候,自己总结了几个代码段,在开发中也经常使用,谢谢。1、使用解构获取json数据let jsonData  id: 1,status: "OK",data: 'a', 'b';let  id, status, data: number   jsonData;console.log(id, status, number )
待兔 待兔
2个月前
手写Java HashMap源码
HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22
Wesley13 Wesley13
2年前
JavaAPI
1.ActiveMQ是什么ActiveMQ是一个消息队列应用服务器(推送服务器)。支持JMS规范。1.1JMS概述全称:JavaMessageService,即为Java消息服务,是一套java消息服务的API标准。(标准即接口)实现了JMS标准的系统,称之
Easter79 Easter79
2年前
Twitter的分布式自增ID算法snowflake (Java版)
概述分布式系统中,有一些需要使用全局唯一ID的场景,这种时候为了防止ID冲突可以使用36位的UUID,但是UUID有一些缺点,首先他相对比较长,另外UUID一般是无序的。有些时候我们希望能使用一种简单一些的ID,并且希望ID能够按照时间有序生成。而twitter的snowflake解决了这种需求,最初Twitter把存储系统从MySQL迁移
Wesley13 Wesley13
2年前
00:Java简单了解
浅谈Java之概述Java是SUN(StanfordUniversityNetwork),斯坦福大学网络公司)1995年推出的一门高级编程语言。Java是一种面向Internet的编程语言。随着Java技术在web方面的不断成熟,已经成为Web应用程序的首选开发语言。Java是简单易学,完全面向对象,安全可靠,与平台无关的编程语言。
Stella981 Stella981
2年前
JMS(Java消息服务)与消息队列ActiveMQ基本使用(一)
最近的项目中用到了mq,之前自己一直在码农一样的照葫芦画瓢。最近几天研究了下,把自己所有看下来的文档和了解总结一下。一.认识JMS1.概述对于JMS,百度百科,是这样介绍的:JMS即Java消息服务(JavaMessageService)应用程序接口是一个Java平台中关于面向消息中间件(MOM)的API,用于在两
Wesley13 Wesley13
2年前
MySQL部分从库上面因为大量的临时表tmp_table造成慢查询
背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_
Python进阶者 Python进阶者
8个月前
Excel中这日期老是出来00:00:00,怎么用Pandas把这个去除
大家好,我是皮皮。一、前言前几天在Python白银交流群【上海新年人】问了一个Pandas数据筛选的问题。问题如下:这日期老是出来00:00:00,怎么把这个去除。二、实现过程后来【论草莓如何成为冻干莓】给了一个思路和代码如下:pd.toexcel之前把这