EJB *** Download ``java_app_platform_sdk-5_02-windows-nojdk.exe`` from the Sun web site. I installed to: :: C:\tools\Sun\SDK\ ============== ==================== **User Name** **Password** ============== ==================== ``admin`` ``adminadmin`` ============== ==================== JEE === Sample project: https://weezy/svn/development/sample/java/sample-maven-j2ee-simple `Creating a simple j2ee Project`_ See Maven - Getting Started - JEE, :doc:`../maven/getting-started`. Dependencies ------------ For the JEE repositories: :: java.net http://download.java.net/maven/1 legacy :: javax.ejb ejb-api 3.0 provided Maven ----- Using the `Maven EJB Plugin`_. Set the ``packaging`` for the module to ``ejb`` and the ``ejbVersion`` to 3.0: :: ejb maven-ejb-plugin 3.0 true ...and using the `Maven WAR Plugin`_ This is a useful note on creating a minimal ``web.xml``: `Creating minimal web.xml for your servlet`_. Test ==== I managed to run my test servlet at: http://localhost:8080/j2ee-simple-servlet/HelloClientServlet I found the URL by checking the log entry where the servlet was deployed: :: Loading web module [j2ee-simple-ear-1:j2ee-simple-servlet-1.0.war] in virtual server [server] at [/j2ee-simple-servlet] Dependency Injection ==================== To get dependency injection working with the ``@EJB`` attribute I had to update the ``web.xml`` version to ``2.5``. Click here for more information, :doc:`issues` REST ==== - `Getting Started With RESTful Web Services Development`_. .. _`Creating a simple j2ee Project`: http://maven.apache.org/plugins/maven-archetype-plugin/examples/j2ee-simple.html .. _`Maven EJB Plugin`: http://maven.apache.org/plugins/maven-ejb-plugin/ .. _`Maven WAR Plugin`: http://maven.apache.org/plugins/maven-war-plugin/ .. _`Creating minimal web.xml for your servlet`: http://www.jetbrains.com/idea/docs/html/webAppl.html#webxml .. _`Getting Started With RESTful Web Services Development`: http://developers.sun.com/docs/web/swdp/r2/rest-impl/docs/getting-started.html