All Examples
Enterprise JavaBean examples
- Basic EJB examples
- Extensions examples
- Subclass example
- Cluster examples
- Jolt for WebLogic example
- WebLogic Enterprise Connectivity example
- Utilities 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
- Read the instructions for each example, found at the links above.
- Set up your development environment as described in
Setting your development environment.
- Depending on the example, set up any special properties, such
as database persistence.
- 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:
- the Cluster example requires that you build the Account EJB before you build the Teller EJB.
- You can deploy each EJB in one of two ways:
- Permanently deploy the bean by adding its .jar file to the
weblogic.ejb.deploy
registration in the weblogic.properties file, then
- start the WebLogic Server.
or
- Start the WebLogic Server, then
- use the hot deploy
feature of the WebLogic Console to deploy the .jar file.
The bean's deployment will only last for that session of the Server.
- If you build an example EJB with the supplied build scripts and deploy it,
you cannot run the build script again and redeploy the bean from the same .jar without getting
an error. You need to build the bean to a new .jar file and redeploy from that second file.
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.
- 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