|
WebLogic Server 6.1.0a1 Code Examples, BEA Systems, Inc. |
See:
Description
Examples Summary | |
examples.ejb.basic.beanManaged | An entity EJB with bean-managed JDBC persistence. The code in the EJB directly access the data storage. Client examples include a single client and servlet. |
examples.ejb.basic.containerManaged | An entity EJB with container-managed JDBC persistence. The code in the EJB never touches the data storage. Demonstrates using finder methods and the WebLogic is-modified-method-name extension to the EJB 1.1 Specification for optimizing calls to the underlying datastore. |
examples.ejb.basic.statefulSession | A stateful session EJB. |
examples.ejb.basic.statelessSession | A stateless session EJB. |
examples.ejb.extensions.readMostly | EJB demonstrating the user of read-mostly pattern. Demonstrates use of read-only and read-write entity EJBs. |
examples.ejb.subclass | A stateless session EJB that demonstrates inheritance in EJB code. |
examples.ejb20.basic.beanManaged | An entity EJB with bean-managed JDBC persistence written to the EJB 2.0 Specification. |
examples.ejb20.basic.containerManaged | An entity EJB with container-managed JDBC persistence written to the EJB 2.0 Specification. |
examples.ejb20.basic.statefulSession | A stateful session EJB written to the EJB 2.0 Specification. |
examples.ejb20.basic.statelessSession | A stateless session EJB written to the EJB 2.0 Specification. |
examples.ejb20.homeMethods | Demonstrates the use of home methods on an EJB. |
examples.ejb20.message | A message-driven EJB written to the EJB 2.0 specification. |
examples.ejb20.relationships.one2many | Demonstrates a one-to-many relationship between two EJBs. |
examples.ejb20.relationships.many2many | Demonstrates a many-to-many relationship between two EJBs. |
Before you can build and run the EJB 2.0 examples, you must first download the WebLogic Server 6.0 supplement, ejb20.jar, from the BEA product download page. This allows you to use the Enterprise JavaBeans features in the WebLogic Server 6.0 environment. Until you install the ejb20.jar file, you will be unable to build and run the EJB 2.0 examples.
The EJB 2.0 examples included in the WebLogic Server 6.0 distribution are not shipped pre-built. To run these examples, you must first download ejb20.jar and then build the example following the specific examples instructions.
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 | |
EJB 2.0 relationships | |
Using inheritance in EJB code | |
Calling an EJB from a servlet | |
Using EJBs in WebLogic clusters | |
Calling a CORBA object on a Weblogic Enterprise Server from an EJB |
Certain examples build Jar files that contain multiple beans:
Note that certain examples depend on other beans being built first:
If you build an example EJB with the supplied build scripts and deploy it, you can run the build script again and redeploy the bean from the same .jar.
|
Documentation is available at http://e-docs.bea.com/wls/docs60/ |