This book describes how to use Active Messaging to capture transactions (data changes) in an Enterprise Edition or Cluster Edition Adaptive Server® Enterprise database and deliver them as events to external applications in real time. These data changes—or events—are delivered to applications through a Java Messaging Service message bus such as EAServer Java Messaging Service (JMS), Tibco Enterprise Message System (EMS) or IBM WebSphere MQ.
This book helps you configure and use active messaging in Adaptive Server database applications.
Chapter 1, “Introduction,” discusses messaging concepts, models, and formats.
Chapter 2, “Understanding Active Messaging,” is an overview of Active Messaging that is specific to Adaptive Server.
Chapter 3, “SQL Reference,” documents the SQL stored procedures, functions, and global variables for managing and administering real-time messaging, and the general format of option strings.
Chapter 4, “Samples,” provides code samples that illustrate messaging functionality.
Active Messaging documentation The Active Messaging documentation set includes:
Active Messaging Users Guide (this book) – explains how to use the Active Messaging feature with both the Enterprise Edition and Cluster Edition of Adaptive Server Enterprise.
Active Messaging Installation and Release Bulletin – contains installation instructions and last-minute information that was too late to be included in the Active Messaging Users Guide.
A more recent version of this installation and release bulletin may be available on the Web. To check for critical product or document information added after the release of the product CD, use the Sybase Product Manuals Web site. To access the most recent release bulletin:
Follow the links to the appropriate Sybase product.
Select the Release Bulletins link.
Select the Sybase product version from the Release Bulletins list.
From the list of individual documents, select the link to the release bulletin for your platform. You can either download the PDF version or browse the document online.
The Adaptive Server® Enterprise documentation set consists of:
The release bulletin for your platform – contains last-minute information that was too late to be included in the books.
A more recent version of the release bulletin may be available on the World Wide Web. To check for critical product or document information that was added after the release of the product CD, use the Sybase Product Manuals Web site.
The Installation Guide for your platform – describes installation, upgrade, and some configuration procedures for all Adaptive Server and related Sybase products.
What’s New in Adaptive Server Enterprise? – describes the new features in Adaptive Server, the system changes added to support those features, and changes that may affect your existing applications.
ASE Replicator Users Guide – describes how to use the Adaptive Server Replicator feature to implement basic replication from a primary server to one or more remote Adaptive Servers.
Active Messaging Users Guide – describes how to use the Active Messaging feature to capture transactions (data changes) in an Adaptive Server Enterprise database and deliver them as events to external applications in real time.
Component Integration Services Users Guide – explains how to use the Component Integration Services feature to connect remote Sybase and non-Sybase databases.
The Configuration Guide for your platform – provides instructions for performing specific configuration tasks.
Enhanced Full-Text Search Specialty Data Store User’s Guide – describes how to use the Full-Text Search feature with Verity to search Adaptive Server data.
Glossary – defines technical terms used in the Adaptive Server documentation.
Historical Server Users Guide – describes how to use Historical Server to obtain performance information for SQL Server® and Adaptive Server.
Java in Adaptive Server Enterprise – describes how to install and use Java classes as datatypes, functions, and stored procedures in the Adaptive Server database.
Job Scheduler Users Guide – provides instructions on how to install and configure, and create and schedule jobs on a local or remote Adaptive Server using the command line or a graphical user interface (GUI).
Migration Technology Guide – describes different strategies and tools for migrating to a different version of Adaptive Server.
Monitor Client Library Programmers Guide – describes how to write Monitor Client Library applications that access Adaptive Server performance data.
Monitor Server Users Guide – describes how to use Monitor Server to obtain performance statistics from SQL Server and Adaptive Server.
Performance and Tuning Series – is a series of books that explain how to tune Adaptive Server for maximum performance:
Basics – contains the basics for understanding and investigating performance questions in Adaptive Server.
Improving Performance with Statistical Analysis – describes how Adaptive Server stores and displays statistics, and how to use the set statistics command to analyze server statistics.
Locking and Concurrency Control – describes how to use locking schemes to improve performance, and how to select indexes to minimize concurrency.
Monitoring Adaptive Server with sp_sysmon – describes how to use sp_sysmon to monitor performance.
Monitoring Tables – describes how to query Adaptive Server monitoring tables for statistical and diagnostic information.
Physical Database Tuning – describes how to manage physical data placement, space allocated for data, and the temporary databases.
Query Processing and Abstract Plans – describes how the optimizer processes queries and how to use abstract plans to change some of the optimizer plans.
Quick Reference Guide – provides a comprehensive listing of the names and syntax for commands, functions, system procedures, extended system procedures, datatypes, and utilities in a pocket-sized book (regular size when viewed in PDF format).
Reference Manual – is a series of books with detailed Transact-SQL information:
Building Blocks – discusses datatypes, functions, global variables, expressions, identifiers and wildcards, and reserved words.
Commands – documents commands.
Procedures – includes system procedures, catalog stored procedures, system extended stored procedures, and dbcc stored procedures.
Tables – discusses system tables and dbcc tables.
System Administration Guide –
Volume 1 – provides an introduction to the basics of system administration, including a description of configuration parameters, resource issues, character sets, sort orders, and instructions for diagnosing system problems. The second part of this book is an in-depth description of security administration.
Volume 2 – includes instructions and guidelines for managing physical resources, mirroring devices, configuring memory and data caches, managing multiprocessor servers and user databases, mounting and unmounting databases, creating and using segments, using the reorg command, and checking database consistency. The second half of this book describes how to back up and restore system and user databases.
System Tables Diagram – illustrates system tables and their entity relationships in a poster format. Full-size available only in print version; a compact version is available in PDF format.
Transact-SQL Users Guide – documents Transact-SQL, the Sybase-enhanced version of the relational database language. This manual serves as a textbook for beginning users of the database management system. This manual also contains descriptions of the pubs2 and pubs3 sample databases.
Troubleshooting Series –
Troubleshooting: Error Messages Advanced Resolutions – contains troubleshooting procedures for problems you may encounter. The problems discussed here are the ones the Sybase Technical Support staff hear about most often.
Troubleshooting and Error Messages Guide – contains detailed instructions on how to resolve the most frequently occurring Adaptive Server error messages. Most of the messages presented here contain error numbers (from the master..sysmessages table), but some error messages do not have error numbers, and occur only in the Adaptive Server error log.
Users Guide for Encrypted Columns – describes how to configure and use encrypted columns with Adaptive Server.
Using Adaptive Server Distributed Transaction Management Features – explains how to configure, use, and troubleshoot Adaptive Server DTM features in distributed transaction processing environments.
Using Sybase Failover in a High Availability System – provides instructions for using Sybase Failover to configure an Adaptive Server as a companion server in a high availability system.
Unified Agent and Agent Management Console – describes the Unified Agent, which provides runtime services to manage, monitor, and control distributed Sybase resources.
Utility Guide – documents the Adaptive Server utility programs, such as isql and bcp, which are executed at the operating system level.
Web Services Users Guide – explains how to configure, use, and troubleshoot Web services for Adaptive Server.
XA Interface Integration Guide for CICS, Encina, and TUXEDO – provides instructions for using the Sybase DTM XA interface with X/Open XA transaction managers.
XML Services in Adaptive Server Enterprise – describes the Sybase native XML processor and the Sybase Java-based XML support, introduces XML in the database, and documents the query and mapping functions that are available in XML services.
You may also need to reference documentation from Sybase products such as EAServer™. All of this documentation is available from the Product Manuals Web site.
Tibco Enterprise Message Service by TIBCO Software.
IBM WebSphere MQ by IBM.
Use the Sybase Getting Started CD, the SyBooks CD, and the Sybase Product Manuals Web site to learn more about your product:
The Getting Started CD contains release bulletins and installation guides in PDF format, and may also contain other documents or updated information not included on the SyBooks CD. It is included with your software. To read or print documents on the Getting Started CD, you need Adobe Acrobat Reader, which you can download at no charge from the Adobe Web site using a link provided on the CD.
The SyBooks CD contains product manuals and is included with your software. The Eclipse-based SyBooks browser allows you to access the manuals in an easy-to-use, HTML-based format.
Some documentation may be provided in PDF format, which you can access through the PDF directory on the SyBooks CD. To read or print the PDF files, you need Adobe Acrobat Reader.
Refer to the SyBooks Installation Guide on the Getting Started CD, or the README.txt file on the SyBooks CD for instructions on installing and starting SyBooks.
The Sybase Product Manuals Web site is an online version of the SyBooks CD that you can access using a standard Web browser. In addition to product manuals, you will find links to EBFs/Maintenance, Technical Documents, Case Management, Solved Cases, newsgroups, and the Sybase Developer Network.
To access the Sybase Product Manuals Web site, go to Product Manuals.
Technical documentation at the Sybase Web site is updated frequently.
Finding the latest information on product certifications
Click Certification Report.
In the Certification Report filter select a product, platform, and timeframe and then click Go.
Click a Certification Report title to display the report.
Finding the latest information on component certifications
Point your Web browser to Availability and Certification Reports.
Either select the product family and product under Search by Base Product; or select the platform and product under Search by Platform.
Select Search to display the availability and certification report for the selection.
Creating a personalized view of the Sybase Web
site (including support pages)
Set up a MySybase profile. MySybase is a free service that allows you to create a personalized view of Sybase Web pages.
Finding the latest information on EBFs and software
maintenance
Select EBFs/Maintenance. If prompted, enter your MySybase user name and password.
Select a product.
Specify a time frame and click Go. A list of EBF/Maintenance releases is displayed.
Padlock icons indicate that you do not have download authorization for certain EBF/Maintenance releases because you are not registered as a Technical Support Contact. If you have not registered, but have valid information provided by your Sybase representative or through your support contract, click Edit Roles to add the “Technical Support Contact” role to your MySybase profile.
Click the Info icon to display the EBF/Maintenance report, or click the product description to download the software.
In the regular text of this document, the names of files and directories appear in italics, for example:
Windows: %SYBASE%\bin
UNIX platforms: $SYBASE
Substitute your Sybase installation drive and directory
for $SYBASE in UNIX, and %SYBASE% in
Windows.
Table 1 details the typographic (font and syntax) conventions in this document.
Element |
Example |
---|---|
Command names, command option names, database names, datatypes, utility names, utility flags, and other keywords are Helvetica. |
dsedit |
Variables, or words that stand for values that you fill in, are in italics. |
|
Parentheses must be typed as part of the command. |
|
Curly braces indicate that at least one of the enclosed options is required by the command (see comma). |
{cheese, sauce}
|
Brackets mean that choosing one or more of the enclosed options is optional. |
[anchovies, pineapple, bell_peppers]
|
The vertical bar means you may select only one of the options shown. |
{cash | check | credit}
|
The comma means you may choose as many of the options shown as you like; separate multiple choices in a command with commas. |
[extra_cheese, avocados, sour_cream]
|
An ellipsis (...) means that you can repeat the unit that the ellipsis follows as many times as you like. |
buy thing = price [cash | check | credit] [, thing = price [cash | check | credit] ]...
|
Syntax statements, which display the utility’s syntax including all its options, appear as shown here, either in san serif font for flags and options (-v), or italics for user-supplied values (username). |
charset [-Ppassword] [-Sserver] [-Iinterface] sort_order | charset |
Examples that illustrate computer output
appear in |
pub_id pub_name city state ------ --------- ------- ----- 0736 New Age Books Boston MA 0877 Binnet & Hardley Washington DC (2 rows affected) |
This document is available in an HTML version that is specialized for accessibility. You can navigate the HTML with an adaptive technology such as a screen reader, or view it with a screen enlarger.
Adaptive Server HTML documentation has been tested for compliance with U.S. government Section 508 Accessibility requirements. Documents that comply with Section 508 generally also meet non-U.S. accessibility guidelines, such as the World Wide Web Consortium (W3C) guidelines for Web sites.
You might need to configure your accessibility tool
for optimal use. Some screen readers pronounce text based on its
case; for example, they pronounce ALL UPPERCASE TEXT as initials,
and MixedCase Text as words. You might find it helpful to configure
your tool to announce syntax conventions. Consult the documentation
for your tool.
For information about how Sybase supports accessibility, see Sybase Accessibility. The Sybase Accessibility site includes links to information on Section 508 and W3C standards.
Each Sybase installation that has purchased a support contract has one or more designated people who are authorized to contact Sybase Technical Support. If you cannot resolve a problem using the manuals or online help, please have the designated person contact Sybase Technical Support or the Sybase subsidiary in your area.