Chapter 7 Enterprise JavaBeans Overview
Jaguar's EJB support
Jaguar can host Enterprise JavaBean (EJB) components developed according
to version 1.1 or 1.0 of the Enterprise JavaBeans specification. Jaguar
supports session Beans and entity Beans with Bean-managed persistence
or container-managed persistence. Jaguar uses CORBA 2.3 as the basis
for the EJB component support, allowing interoperability with other
client and component models and with CORBA-2.3-compliant ORBs from
other vendors.
Running EJB components in Jaguar
Jaguar can host Enterprise JavaBean (EJB) components developed according
to either version 1.1 or 1.0 of the Enterprise JavaBeans specification.
Jaguar supports session Beans and entity Beans with Bean-managed
persistence or container-managed persistence. Jaguar uses CORBA
2.3 as the basis for the EJB component support, allowing interoperability
with other client and component models and with ORBs from other
vendors that are compliant with CORBA 2.3.
EJB 1.1 components require JDK 1.2
You must run EJB 1.1 component in the JDK 1.2 version of Jaguar
server.
You can run Enterprise JavaBeans as Jaguar components using
any of these techniques:
- Define EJB components
in PowerJ, using wizards to define the interfaces and deploy the
Bean directly from PowerJ to a Jaguar server. See the PowerJ documentation
for more information.
- Use Jaguar Manager to import an EJB-JAR file that
contains the classes and deployment descriptors for one or more
EJB components. Jaguar Manager defines components with properties
matching the deployment descriptor settings.
- Import compiled versions of a home interface, remote
interface, implementation class, and (for entity Beans) the primary
key class. Jaguar Manager defines IDL interfaces for the interfaces
and the primary key, and defines an EJB component with default settings.
You can configure additional settings such as transaction attributes
and database resource references using the Jaguar Manager Component Properties
dialog box.
- Define an EJB component from scratch in Jaguar Manager,
using Jaguar Manager's IDL generation tools to define the
home interface, remote interface, and primary key type. Jaguar Manager
generates Java classes for the home and remote interfaces and primary
key class, as well as a template for the implementation class.
Jaguar also supports the Enterprise JavaBean client model.
You can generate EJB-style proxies for any IDL interface, and use
the proxies to call methods on components that implement that interface.
EJB clients connecting to Jaguar
Jaguar also supports the Enterprise JavaBean client model
by generating EJB proxies and providing an EJB-compliant implementation
of the JNDI NamingContext class. You can generate
EJB-style proxies for any IDL interface (not just those associated
with EJB components), and use the proxies to call methods on components
that implement that interface. The NamingContext class
can also be used in EJB components to instantiate home interfaces
for intercomponent calls.
For more information
For information about
|
See this chapter
|
Creating, importing, and exporting EJB components.
|
Chapter 8, "Creating Enterprise JavaBean Components"
|
Creating EJB clients, generating EJB stubs,
instantiating home and remote interface proxies, managing transactions, and
serializing and deserializing Bean proxies.
|
Chapter 8, "Creating Enterprise JavaBean Components"
|
Configuring container-managed persistence
for entity Beans and passivation of stateful session Beans
|
Chapter 29, "Managing Persistent Component State"
|
Invoking non-EJB components from EJB clients
and invoking EJB components from non-EJB clients.
The information in this chapter applies to both EJB 1.0 and
EJB 1.1 components.
|
Chapter 10, "Jaguar EJB Interoperability"
|
Copyright © 2000 Sybase, Inc. All rights reserved.
|
|