此内容没有您所选择的语言版本。

1.5. Client API


Overview

Figure 1.4, “Client APIs” gives an overview of the available APIs for programing WS-Notification clients.

Figure 1.4. Client APIs

WS-Notification standard API

Clients can be implemented using the standard WS-Notification API, which is obtained by mapping the standard WSDL interfaces to Java the JAX-WS and JAX-B. This has the advantage that you can use standard client code to access the notification broker (ensuring code portability), but it has the disadvantage that the standard API is relatively complicated to program with.

Simplified client API

To simplify working with the notification broker, JBoss A-MQ offers a simplified (non-standard) client API for accessing the notification broker. This API automatically takes care of tedious manipulation of JAX-B data types. Using this API, you typically require just a few method calls to implement a basic WS-Notification client.
For example, see the client code samples in Chapter 2, WS-Notification Tutorial.

API reference

The full API reference for the simplified client API is provided in the Apache CXF API Reference, which is available from the API Reference in the JBoss Fuse library. All of the relevant classes can be found in the following Java package:
org.apache.cxf.wsn.client
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.