Show Table of Contents
20.2. 传输配置
20.2.1. 关于接收器(Acceptor)和连接器(Connector)
HornetQ 将连接器和接收器的概念作为消息系统的关键部分。
接收器和连接器
Acceptor- 接收器(Acceptor)定义 HornetQ 服务器接受哪个类型的连接。
Connector- 连接器(Connector)定义 HornetQ 客户如何使用它来连接 HornetQ 服务器。
根据配对的连接器和接收器是否处于相同的 JVM,有两种类型的连接器和接收器。
Invm 和 Netty
Invm- Invm 是 Intra Virtual Machine 的简称。当客户和服务器运行在同一个 JVM 里时可以使用它。
Netty- JBoss 项目的名称。当客户和服务器运行在不同的 JVM 里时必须使用它。
HornetQ 客户必须使用兼容其中一个服务接收器的连接器。只有 Invm 连接器可以连接 Invm 接收器,也只有 netty 连接器可以连接 netty 接收器。连接器和接收器都可以在服务器的
standalone.xml 和 domain.xml 里进行配置。您可以使用管理控制台或管理 CLI 来定义它们。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.