|Home > Apache Geronimo v2.2 > Documentation > Developing > Tutorials > Developing Web applications > Accessing EJB in Web applications|
To run this tutorial, as a minimum you will be required to have installed the following prerequisite software:
|Geronimo version 2.1.x, Java 1.5 runtime, and Eclipse Ganymede are used is used in this tutorial but other versions can be used instead (e.g., Geronimo version 2.2, Java 1.6, Eclipse Europa)|
Details on installing eclipse are provided in the Development environment section. This tutorial is organized in the following sections:
Here the @Remote annotation is used to declare it as a Remote Interface.
Here the @Stateless annotation declares the POJO(Plain Old Java Object) as a Stateless session bean.
This complete the EJB code.
The @EJB(name = "ejb/Converter") injects the EJB into the servlet. This completes the code for Web project.
We have added a dependencies element (i.e., <dependencies>) and an ejb reference element (i.e., <ejb-ref>) to geronimo-web.xml. This step is required to make our CurrencyConvertEJB visible to our web application.