|
Page Created :
OPENEJB :
Generating EJB 3 annotations
Generating EJB 3 annotations has been created by Jonathan Gallimore (Jun 04, 2008). Content:Generating EJB 3 annotationsThe OpenEJB Eclipse plugin is able to provide some assistance in helping you migrate EJB 2.x projects to EJB 3.0, by analyzing your ejb-jar.xml file, and adding EJB annotations to your source code. This page will show you how to use this functionality. First of all you will need to add the EJB 3.0 API jars to the classpath of your project. If you are using Maven, you can add the following to your POM (you will need to update your Eclipse project using mvn eclipse:eclipse afterwards) <dependencies>
...
<dependency>
<groupId>org.apache.openejb</groupId>
<artifactId>javaee-api</artifactId>
<version>5.0-1</version>
<scope>provided</scope>
</dependency>
</dependencies>
Review the changes that the plugin will make to your source code. Uncheck any changes you don't want to apply, and click 'Finish'. |
Unsubscribe or edit your notifications preferences
