Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fixed typo in tip title

...

(The remote business interface is not shown for the sake of brevity).

Tip
title@Local @EJB annotation

You can use the @EJB annotation to refer a session bean in other components specified by the Java EE platform, for instance:

  • Servlets
  • ServletContextListeners
  • Servlet Filters
  • JSF managed beans
  • EJB interceptors
  • JAX-WS service endpoints

...

No Format
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
[surefire] Running org.apache.openejb.examples.injection.EjbDependencyTest
log4j:WARN No appenders could be found for logger (OpenEJB).
log4j:WARN Please initialize the log4j system properly.
Apache OpenEJB 3.0-incubating-SNAPSHOT    build: 20070105-12:45
http://incubator.apache.org/openejb
OpenEJB ready.
[surefire] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 2.006 sec
[INFO] [jar:jar]
[INFO] Building jar: openejb3/examples/ejb-injection/target/ejb-injection-sample-1.0-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing openejb3/examples/ejb-injection/target/ejb-injection-sample-1.0-SNAPSHOT.jar to /.m2/repository/org/apache/openejb/ejb-injection-sample/1.0-SNAPSHOT/ejb-injection-sample-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------