Oracle GlassFish Server Message Queue Developer's Guide for C Clients Release 4.5.2 Part Number E24944-01 |
|
|
View PDF |
This book provides programming and reference information for developers working with Message Queue 4.5.2, who want to use the C language binding to the Message Queue Service to send, receive, and process Message Queue messages.
This preface consists of the following sections:
This guide is for developers who want to use the C-API in order to write C or C++ messaging programs that can interact with the Message Queue broker to send and receive JMS messages.
This book assumes that readers are experienced C or C++ programmers and that they are familiar with the Java Message Service specification.
You must read the Oracle GlassFish Server Message Queue Technical Overview to become familiar with Message Queue's implementation of the Java Message Service specification, with the components of the Message Queue service, and with the basic process of developing, deploying, and administering a Message Queue application.
This guide is designed to be read from beginning to end. The following table briefly describes the contents of each chapter.
Chapter | Description |
---|---|
Introduces the C-API, provides quick start instructions on compiling and building Message Queue C clients. Introduces the Message Queue C-Client sample applications that are shipped with Message Queue, and explains how you set up your environment to run these examples. Provides a deployment worksheet. |
|
Explains how you use the C-API to construct, to send, to receive, and to process messages. This chapter also covers error handling, memory management, and logging. |
|
Explains the major considerations that you need to keep in mind when designing a Message Queue C client. |
|
Provides complete reference information for the Message Queue C-API: data structures and functions. It also lists and describes the contents of the C-API header files. |
|
Lists the code and descriptive string returned for errors that are returned by C library functions. |
This section describes the following conventions used in Message Queue documentation:
The following table describes the typographic conventions that are used in this book.
Typeface | Meaning | Example |
---|---|---|
|
The names of commands, files, and directories, and onscreen computer output |
Edit your Use
|
|
What you type, contrasted with onscreen computer output |
|
aabbcc123 |
Placeholder: replace with a real name or value |
The command to remove a file is |
AaBbCc123 |
Book titles, new terms, and terms to be emphasized |
Read Chapter 6 in the User's Guide. A cache is a copy that is stored locally. Do not save the file. Note: Some emphasized items appear bold online. |
The following table explains symbols that might be used in this book.
Symbol | Description | Example | Meaning |
---|---|---|---|
|
Contains optional arguments and command options. |
|
The |
|
Contains a set of choices for a required command option. |
|
The |
|
Indicates a variable reference. |
|
References the value of the |
- |
Joins simultaneous multiple keystrokes. |
Control-A |
Press the Control key while you press the A key. |
+ |
Joins consecutive multiple keystrokes. |
Ctrl+A+N |
Press the Control key, release it, and then press the subsequent keys. |
> |
Indicates menu item selection in a graphical user interface. |
File > New > Templates |
From the File menu, choose New. From the New submenu, choose Templates. |
The following table shows the conventions used in Message Queue documentation for the default UNIX system prompt and superuser prompt for the C shell, Bourne shell, Korn shell, and for the Windows operating system.
Shell | Prompt |
---|---|
C shell on UNIX, Linux, or AIX |
machine-name |
C shell superuser on UNIX, Linux, or AIX |
machine-name |
Bourne shell and Korn shell on UNIX, Linux, or AIX |
|
Bourne shell and Korn shell superuser on UNIX, Linux, or AIX |
|
Windows command line |
|
Message Queue documentation makes use of three directory variables; two of which represent environment variables needed by Message Queue. (How you set the environment variables varies from platform to platform.)
The following table describes the directory variables that might be found in this book and how they are used. Some of these variables refer to the directory mqInstallHome, which is the directory where Message Queue is installed to when using the installer or unzipped to when using a zip-based distribution.
Note:
In this book, directory variables are shown without platform-specific environment variable notation or syntax (such as $IMQ_HOME
on UNIX). Non-platform-specific path names use UNIX directory separator (/
) notation.
Variable | Description |
---|---|
|
The Message Queue home directory:
|
|
The directory in which Message Queue temporary or dynamically created configuration and data files are stored;
|
|
An environment variable that points to the location of the Java runtime environment (JRE) required by Message Queue executable files. By default, Message Queue looks for and uses the latest JDK, but you can optionally set the value of |
The information resources listed in this section provide further information about Message Queue in addition to that contained in this manual. The section covers the following resources:
The documents that constitute the Message Queue documentation set are listed in the following table in the order in which you might normally use them. These documents are available through the Oracle GlassFish Server documentation web site at
http://www.oracle.com/technetwork/indexes/documentation/index.html
Document | Audience | Description |
---|---|---|
Developers and administrators |
Describes Message Queue concepts, features, and components. |
|
Developers and administrators |
Includes descriptions of new features, limitations, and known bugs, as well as technical notes. |
|
Administrators, also recommended for developers |
Provides background and information needed to perform administration tasks using Message Queue administration tools. |
|
Developers |
Provides a quick-start tutorial and programming information for developers of Java client programs using the Message Queue implementation of the JMS or SOAP/JAXM APIs. |
|
Developers |
Provides programming and reference documentation for developers of C client programs using the Message Queue C implementation of the JMS API (C-API). |
|
Administrators |
Provides programming and reference documentation for developers of JMX client programs using the Message Queue JMX API. |
The Message Queue message service conforms to the Java Message Service (JMS) application programming interface, described in the Java Message Service Specification. This document can be found at the URL http://www.oracle.com/technetwork/java/jms/index.html
.
JMS and Message Queue API documentation in JavaDoc format is included in Message Queue installations at IMQ_HOME/javadoc/index.html
. This documentation can be viewed in any HTML browser. It includes standard JMS API documentation as well as Message Queue–specific APIs.
Message Queue provides a number of example client applications to assist developers.
Example Java client applications are included in Message Queue installations at IMQ_HOME/examples
. See the README
files located in this directory and its subdirectories for descriptive information about the example applications.
Example C client applications are included in Message Queue installations at IMQ_HOME/examples/C
. See the README
files located in this directory and its subdirectories for descriptive information about the example applications.
Example Java Management Extensions (JMX) client applications are included in Message Queue installations at IMQ_HOME/examples/jmx
. See the README
files located in this directory and its subdirectories for descriptive information about the example applications.
Online help is available for the Message Queue command line utilities; for details, see "Command Line Reference" in Oracle GlassFish Server Message Queue Administration Guide. The Message Queue graphical user interface (GUI) administration tool, the Administration Console, also includes a context-sensitive help facility; for details, see "Administration Console Online Help" in Oracle GlassFish Server Message Queue Administration Guide.
The Oracle web site provides information about the following additional resources:
For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc
.
Oracle customers have access to electronic support through My Oracle Support. For information, visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=info
or visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trs
if you are hearing impaired.