Red Hat AMQ 6
As of February 2025, Red Hat is no longer supporting Red Hat AMQ 6. If you are using AMQ 6, please upgrade: Migrating to AMQ 7.此内容没有您所选择的语言版本。
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
org.apache.cxf.wsn.client