Date: 2003-12-30T15:06:02
Editor: JacekLaskowski <[EMAIL PROTECTED]>
Wiki: Apache Geronimo Wiki
Page: OpenEJBNova
URL: http://wiki.apache.org/geronimo/OpenEJBNova
More details
Change Log:
------------------------------------------------------------------------------
@@ -49,7 +49,9 @@
* Configuring EJB deployment directory
- Open target/geronimo-DEV/etc/boot-service.xml and change the first argument
of the constructor so it contains a directory with EJBs
+ Open target/geronimo-DEV/etc/boot-service.xml and change the first argument
of the constructor tag so it contains a directory with your EJBs, say
${geronimo.home}/ejbs.
+
+ NOTE: ${geronimo.home} is the way to get at defined Java properties available
for Geronimo at runtime. It's possible to use any Java property, so define your
own in maven.xml and use it.
{{{
<arg
type="java.net.URL[]">${geronimo.home}/deploy/,${geronimo.home}/ejbs/</arg>}}}
@@ -62,11 +64,18 @@
File extensions aren't important.
- * Two files are mandatory to have Geronimo (EJBmoduleDeploymentPlanner,
exactly) deploy an EJB:
+ * Two files are mandatory to have Geronimo
(org.openejb.nova.deployment.EJBmoduleDeploymentPlanner, exactly) deploy an EJB:
* '''META-INF/geronimo-ejb-jar.xml'''
* '''META-INF/ejb-jar.xml'''
- They have the same XML structure, so creating a corresponding
geronimo-ejb-jar.xml boils down to copying ejb-jar.xml as geronimo-ejb-jar.xml.
+ They have a very similar XML structure, so creating a corresponding
geronimo-ejb-jar.xml boils down to do the following steps:
+ 1. copy ejb-jar.xml as geronimo-ejb-jar.xml
+ 1. Add Geronimo-specific ClassSpace tag to geronimo-ejb-jar.xml, thus the
ejb-jar tag changes to:
+
+ {{{<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:ger="http://geronimo.apache.org/xml/schema/j2ee">
+ <ger:class-space name="geronimo.system:role=ClassSpace,name=System"/>}}}
+
+ NOTE: You can find a sample EJB at [http://www.openejb.org/hello-world.html
OpenEJB Hello World!] page.
* Start up Geronimo