You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

Name

EJB3 Plugin

Publisher

Apache Software Foundation

License

Open Source (ASL2)

Version

1.0.1

Homepage

http://code.google.com/p/struts2ejb3/

Download

http://code.google.com/p/struts2ejb3/downloads/list

Source Code

http://code.google.com/p/struts2ejb3/source

Error formatting macro: rate: java.lang.NoSuchMethodError: 'java.lang.String com.atlassian.confluence.setup.BootstrapManager.getDomainName()'

Overview

The EJB plugin allows EJB3 session beans to be injected into Struts 2 actions.

Requirements

  • Struts 2.0.6+

Installation

This plugin can be installed by copying the plugin jar into your application's /WEB-INF/lib directory.

Usage

First, add the InjectEJBInterceptor to your interceptor stack:

  <interceptor name="ejb3" class="com.googlecode.struts2ejb3.InjectEJBInterceptor" />

Next, add the @InjectEJB annotation to your EJB3 action properties:

public class ExampleAction {
	@InjectEJB
	private ExampleBean exampleBean;
	...
}
  • No labels