All Examples

Package Index

Enterprise JavaBean examples

quick guide to the examples

If you're interested in... ...then look at these examples:
Entity EJBeans
Entity EJbeans that are automatically keyed
The WebLogic entity bean extension isModified
Finders and finder expressions
Session EJBeans
EJBeans called from multiple threads
Calling an EJBean from another EJBean
Calling an EJBean from a servlet
Using EJBeans in WebLogic Clusters
Calling a TUXEDO Server from an EJBean using Jolt for WebLogic
Calling a CORBA object on a Weblogic Enterprise Server from an EJBean
Listing all the EJBeans 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. We've provided instructions on using the build scripts. If you're using the scripts under Microsoft's SDK for Java, note the instructions on using the jar tool.

    Certain examples (subclass, cluster) build .jar files that contain multiple beans:

    Note that certain examples (extensions, child) depend on other beans being built first:

  5. You can deploy each EJBean 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 the Developers Guide Using WebLogic Enterprise JavaBeans.

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-1999 BEA Systems, Inc. All rights reserved.

Last updated 09/22/1999