OpenWire is our cross language Wire Protocol to allow native access to ActiveMQ from a number of different languages and platforms. The Java OpenWire transport is the default transport in ActiveMQ 4.x or later. For other languages see the following...

OpenWire是我们的跨语言线协议,允许从许多不同的语言和平台访问ActiveMQ。Java OpenWire传输是activemq4中的缺省传输。x或更高版本。对于其他语言,请参见下面的…

Note that you can also use Stomp to access ActiveMQ from many different languages as well as use GCJ or IKVM to access the Java code for ActiveMQ from C/C++ or .Net respectively without using OpenWire.

注意,您还可以使用Stomp从许多不同的语言访问ActiveMQ,并使用GCJ或IKVM来分别从C/ c++或。net访问ActiveMQ的Java代码,而不使用OpenWire。

How it works

它是如何工作的

OpenWire works by code generating language specific commands and marshaling code which understands the core OpenWire protocol. Then we can write language specific extensions for the low level protocol to provide a nice and easy to use client API in different languages.

OpenWire是通过代码生成特定语言的命令和编组代码来工作的,它理解核心的OpenWire协议。然后,我们可以为低层协议编写特定语言的扩展,以提供一种使用不同语言的客户端API的友好和容易的方法。

To give you an idea, here are the Java classes which code generate the C#, Java, C, and CPP client code.

为了给您一个想法,这里是Java类,代码生成c#、Java、C和CPP客户端代码。

Since OpenWire automates the creation of language specific Wire Protocol implementations; then its a matter of wrapping the language specific TCP/IP socket code and wrapping the API in some easy to use functions/classes.

由于OpenWire自动化了语言特定的有线协议实现的创建;然后,它需要包装特定于语言的TCP/IP套接字代码,并将API封装到一些易于使用的函数/类中。

Specification

规范

For a detailed specification of what you will see on the wire:

关于你将在电线上看到的详细说明:

© 2004-2011 The Apache Software Foundation.
Apache ActiveMQ, ActiveMQ, Apache, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram