All Examples

Package Index

Enterprise JavaBean examples

quick guide to the examples

If you're interested in... ...then look at these examples:
Entity EJBs
The WebLogic entity bean extension isModified
Finders and finder expressions
Session EJBs
Calling an EJB from another EJB
Using inheritance in EJB code
Calling an EJB from a servlet
Using EJBs in WebLogic Clusters
Calling a TUXEDO Server from an EJB using Jolt for WebLogic
Calling a CORBA object on a Weblogic Enterprise Server from an EJB
Listing all the EJBs deployed on a Server

about these examples

These examples demonstrate different aspects of Enterprise JavaBeans. It's a good idea to run all of these examples before attempting to create your own Enterprise JavaBeans. They will show you the different steps involved.

The examples demonstrate:

Building and running the examples

  1. Read the instructions for each example, found at the links above.

  2. Set up your development environment as described in Setting your development environment.

  3. Depending on the example, set up any special properties, such as database persistence.

  4. Build each example, using the provided build scripts or make file. We've provided instructions on using the build scripts.

    Certain examples build .jar files that contain multiple beans:

    Note that certain examples depend on other beans being built first:

  5. You can deploy each EJB in one of two ways:

    or

    Note: If you're running under the Microsoft SDK for Java, you'll also need to add the path to the .jar to the CLASSPATH for your WebLogic Server.

  6. Run the example following the instructions for the example.

there's more

Read more about EJB in WebLogic Server EJB Design and Development.

Read more about EJB deployment in these Deployment Guides:

Read more about building the EJB examples with our supplied scripts in Building Enterprise JavaBean examples.

Copyright © 1997-2000 BEA Systems, Inc. All rights reserved.

Last updated 03/22/2000