This book describes how to create Enterprise JavaBean (EJB) clients and components for Sybase® EJB Server and Adaptive Server® Enterprise.
This book is intended for EJB component developers, Sybase System Administrators, and others interested in EJB components.
This book will assist you in creating EJB components and clients for Sybase EJB Server. It contains these parts and chapters:
Part 1, “Overview,” provides a general description of the EJB Server and sufficient information to allow you to get started using it. Part 1 contains these chapters:
Chapter 1, “About EJB Server,” provides an overview of EJB Server, a summary of EJB Server features, and a description of Sybase PowerJ.
Chapter 2, “Getting Started,” describes basic concepts, terminology, and basic task information you need to use EJB Server
Part 2, “Information for Developers,” describes EJBs and presents information about using the Adaptive Server plug-in for Sybase Central and PowerJ to create EJB clients and components.
Chapter 3, “Enterprise JavaBeans Overview,” describes Enterprise JavaBeans components.
Chapter 4, “Creating Component-Based Applications” describes the process of designing, building, and deploying applications with components executing in EJB Server.
Chapter 5, “Understanding Transactions and Component Lifecycles” explains the EJB Server component lifecycle and transaction processing models.
Chapter 6, “Working with EJB Packages and Components,” provides instructions for creating, deploying, and modifying EJB components and packages.
Chapter 7, “Creating Enterprise JavaBean Clients,” describes how to implement EJB clients using the Sybase EJB client runtime.
Chapter 8, “Managing Persistent Component State” describes how to manage persistence for Enterprise JavaBeans.
Chapter 9, “Developing Applications with PowerJ and EJB Server,” gives an overview of how to develop applications using PowerJ and EJB Server
Part 3, “Information for Administrators,” describes how to set up and manage the EJB Server. It also describes the system procedures that support EJB Server.
Chapter 10, “Configuring EJB Server,” describes basic configuration tasks to customize your installation, such as creating new servers, changing server properties, and defining new connection caches
Chapter 11, “EJB Server Naming Services” describes how to use naming services to associate a logical name with an object.
The following documents comprise the Sybase® Adaptive Server® Enterprise documentation:
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 Technical Library.
The Installation Guide for your platform – describes installation, upgrade, and configuration procedures for all Adaptive Server and related Sybase products.
What’s New in Adaptive Server Enterprise? – describes the new features in Adaptive Server version 12.5.1, the system changes added to support those features, and the changes that may affect your existing applications.
ASE Replicator User’s Guide – describes how to use the ASE Replicator feature of Adaptive Server to implement basic replication from a primary server to one or more remote Adaptive Servers.
Component Integration Services User’s Guide – explains how to use the Adaptive Server Component Integration Services feature to connect remote Sybase and non-Sybase databases.
Configuring Adaptive Server Enterprise for your platform – provides instructions for performing specific configuration tasks for Adaptive Server.
Error Messages and Troubleshooting Guide – explains how to resolve frequently occurring error messages and describes solutions to system problems frequently encountered by users.
Full-Text Search Specialty Data Store User’s Guide – describes how to use the Full-Text Search feature with Verity to search Adaptive Server Enterprise data.
Glossary – defines technical terms used in the Adaptive Server documentation.
Historical Server User’s 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 data types, functions, and stored procedures in the Adaptive Server database.
jConnect for JDBC Programmer’s Reference – describes the jConnect™ for JDBC™ product and explains how to use it to access data stored in relational database management systems.
Job Scheduler User's 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).
Monitor Client Library Programmer’s Guide – describes how to write Monitor Client Library applications that access Adaptive Server performance data.
Monitor Server User’s Guide – describes how to use Monitor Server to obtain performance statistics from SQL Server and Adaptive Server.
Performance and Tuning Guide – is a series of four books that explains how to tune Adaptive Server for maximum performance:
Basics – the basics for understanding and investigating performance questions in Adaptive Server.
Locking – describes how the various locking schemas can be used for improving performance in Adaptive Server.
Optimizer and Abstract Plans – describes how the optimizer processes queries and how abstract plans can be used to change some of the optimizer plans.
Monitoring and Analyzing – explains how statistics are obtained and used for monitoring and optimizing performance.
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.
Reference Manual – is a series of four books that contains the following detailed Transact-SQL® information:
Building Blocks – Transact-SQL datatypes, functions, global variables, expressions, identifiers and wildcards, and reserved words.
Commands – Transact-SQL commands.
Procedures – Transact-SQL system procedures, catalog stored procedures, system extended stored procedures, and dbcc stored procedures.
Tables – Transact-SQL system tables and dbcc tables.
System Administration Guide – provides in-depth information about administering servers and databases. This manual includes instructions and guidelines for managing physical resources, security, user and system databases, and specifying character conversion, international language, and sort order settings.
System Tables Diagram – illustrates system tables and their entity relationships in a poster format. Available only in print version.
Transact-SQL User’s Guide – documents Transact-SQL, Sybase’s 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.
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’s Failover to configure an Adaptive Server as a companion server in a high availability system.
Utility Guide – documents the Adaptive Server utility programs, such as isql and bcp, which are executed at the operating system level.
Web Services User’s 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 comprise XML Services.
Use the Sybase Getting Started CD, the Sybase Technical Library CD and the Technical Library 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 Technical Library CD. It is included with your software. To read or print documents on the Getting Started CD you need Adobe Acrobat Reader (downloadable at no charge from the Adobe Web site, using a link provided on the CD).
The Technical Library CD contains product manuals and is included with your software. The DynaText reader (included on the Technical Library CD) allows you to access technical information about your product in an easy-to-use format.
Refer to the Technical Library Installation Guide in your documentation package for instructions on installing and starting the Technical Library.
The Technical Library Product Manuals Web site is an HTML version of the Technical Library CD that you can access using a standard Web browser. In addition to product manuals, you will find links to EBFs/Updates, Technical Documents, Case Management, Solved Cases, newsgroups, and the Sybase Developer Network.
To access the Technical Library 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
Point your Web browser to Technical Documents.
Select Products from the navigation bar on the left.
Select a product name from the product list and click Go.
Select the Certification Report filter, specify a time frame, and click Go.
Click a Certification Report title to display the report.
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.
Point your Web browser to Technical Documents.
Click MySybase and create a MySybase profile.
Finding the latest information on EBFs and software maintenance
Point your Web browser to the Sybase Support Page.
Select EBFs/Maintenance. Enter user name and password information, if prompted (for existing Web accounts) or create a new account (a free service).
Select a product.
Specify a time frame and click Go.
Click the Info icon to display the EBF/Maintenance report, or click the product description to download the software.
This book uses these font and syntax conventions for Java items:
Classes, interfaces, methods, and packages are shown in Helvetica within paragraph text. For example:
SybEventHandler interface
setBinaryStream( ) method
com.Sybase.jdbx package
Objects and parameter names are shown in italics. For example:
“In the following example, ctx is a DirContext object.”
“eventHdler is an instance of the SybEventHandler class that you implement.”
“The classes parameter is a string that lists specific classes you want to debug.”
Java names are always case sensitive. For example, if a Java method name is shown as Misc.stripLeadingBlanks( ), you must type the method name exactly as displayed.
This book uses the same font and syntax conventions for Transact-SQL as other Adaptive Server documents:
Command names, command option names, utility names, utility flags, and other keywords are in Helvetica in paragraph text. For example:
select command
isql utility
-f flag
Variables, or words that stand for values that you fill in, are in italics. For example:
user_name
server_name
Code fragments are shown in a monospace font.Variables in code fragments (that is, words that stand for values that you fill in) are italicized. For example:
Connection con = DriverManager.getConnection ("jdbc:sybase:Tds:host:port", props);
You can disregard case when typing Transact-SQL keywords. For example, SELECT, Select, and select are the same.
Additional conventions for syntax statements in this manual are described in Table 1. Examples illustrating each convention can be found in the System Administration Guide.
Key |
Definition |
---|---|
{ } |
Curly braces indicate that you choose at least one of the enclosed options. Do not include braces in your option. |
[ ] |
Brackets mean choosing one or more of the enclosed options is optional. Do not include brackets in your option. |
( ) |
Parentheses are to be typed as part of the command. |
| |
The vertical bar means you may select only one of the options shown. |
, |
The comma means you may choose as many of the options shown as you like, separating your choices with commas to be typed as part of the command. |
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.