User: salborini
Date: 00/09/18 18:47:45
Modified: . CDEJB.tar.gz jboss_cmp2.html jboss_cmp3.html
Log:
Changed jboss.xml in the cd example to make it work with beta-prod
Revision Changes Path
1.2 +191 -189 jbossweb/CDEJB.tar.gz
<<Binary file>>
1.3 +10 -7 jbossweb/jboss_cmp2.html
Index: jboss_cmp2.html
===================================================================
RCS file: /products/cvs/ejboss/jbossweb/jboss_cmp2.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- jboss_cmp2.html 2000/09/01 23:53:46 1.2
+++ jboss_cmp2.html 2000/09/19 01:47:45 1.3
@@ -25,15 +25,16 @@
</td>
</tr>
</table>
- <p>The entity bean representing the CD is very easy to code, as it doesn't
have to do a great deal. All the issues of persistence will be taken care of by the
server. I will present the full code for this Bean below; the code for the
CDCollection Bean will not be discussed further because it is not interesting in the
context of container-managed persistence. Remember that the full source code is
available to download: <a href="/CDEJB.tar.gz">click here</a>.</p>
+ <p>The entity bean representing the CD is very easy to code, as it doesn't
have to do a great deal. All the issues of persistence will be taken care of by the
server. I will present the full code for this Bean below; the code for the
CDCollection Bean will not be discussed further because it is not interesting in the
context of container-managed persistence. Remember that the full source code is
available to download: <a href="CDEJB.tar.gz">click here</a>.</p>
<p><b>CD.java: remote interface for the `CD' Bean</b><br>
<hr>
</p>
<p>
<table border="0" bgcolor="#80ff80" cellspacing="4">
<tr>
- <td>package com.web_tomorrow.cd;
- <pre>
+ <td>
+ <pre>package com.web_tomorrow.cd;
+
import java.rmi.RemoteException;
import javax.ejb.*;
@@ -114,8 +115,9 @@
<p>
<table border="0" bgcolor="#80ff80" cellspacing="4">
<tr>
- <td>package com.web_tomorrow.cd;
- <pre>import java.rmi.RemoteException;
+ <td><pre>package com.web_tomorrow.cd;
+
+import java.rmi.RemoteException;
import javax.ejb.*;
import java.util.Collection;
@@ -163,8 +165,9 @@
<p>
<table border="0" bgcolor="#80ff80" cellspacing="4">
<tr>
- <td>package com.web_tomorrow.cd;
- <pre>import java.rmi.RemoteException;
+ <td><pre>package com.web_tomorrow.cd;
+
+import java.rmi.RemoteException;
import javax.ejb.*;
/**
1.3 +14 -17 jbossweb/jboss_cmp3.html
Index: jboss_cmp3.html
===================================================================
RCS file: /products/cvs/ejboss/jbossweb/jboss_cmp3.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- jboss_cmp3.html 2000/09/01 23:53:46 1.2
+++ jboss_cmp3.html 2000/09/19 01:47:45 1.3
@@ -30,10 +30,8 @@
<hr>
</p>
<p>
- <table border="0" bgcolor="#80ff80" cellspacing="4">
- <tr>
- <td><enterprise-beans>
- <pre> <entity>
+ <table border="0" bgcolor="#80ff80"
cellspacing="4"><tr><td><pre><enterprise-beans>
+ <entity>
<description>Models a music CD</description>
<ejb-name>CDBean</ejb-name>
<home>com.web_tomorrow.cd.CDHome</home>
@@ -52,7 +50,7 @@
<!-- more beans here -->
-</entity-beans></pre>
+</enterprise-beans></pre>
</td>
</tr>
</table>
@@ -63,8 +61,8 @@
<p>
<table border="0" bgcolor="#ffff80" cellspacing="4">
<tr>
- <td>[JAWS] Initializing JAWS plugin for CDBean
- <pre>[Container factory]
java.lang.NoSuchFieldException: CASE_INSENSITIVE_ORDER</pre>
+ <td><pre>[JAWS] Initializing JAWS plugin for CDBean
+[Container factory] java.lang.NoSuchFieldException: CASE_INSENSITIVE_ORDER</pre>
</td>
</tr>
</table>
@@ -76,8 +74,8 @@
<p>
<table border="0" bgcolor="#80ff80" cellspacing="4">
<tr>
- <td><session>
- <pre> <description>Models a music CD
collection</description>
+ <td><pre><session>
+ <description>Models a music CD collection</description>
<ejb-name>CDCollectionBean</ejb-name>
<home>com.web_tomorrow.cd.CDCollectionHome</home>
<remote>com.web_tomorrow.cd.CDCollection</remote>
@@ -98,7 +96,7 @@
</p>
<p>
<hr>
- <p>In the jBoss run-time configuration file `jboss.xml' we should specify the
type of configuration to be used by Beans, and their JNDI names, like this:</p>
+ <p>In the jBoss run-time configuration file `jboss.xml' we should specify the
JNDI names of the Beans, like this:</p>
<p>
<hr>
</p>
@@ -106,16 +104,14 @@
<p>
<table border="0" bgcolor="#80ff80" cellspacing="4">
<tr>
- <td><entity>
- <pre> <ejb-name>CDBean</ejb-name>
+ <td><pre><entity>
+ <ejb-name>CDBean</ejb-name>
<jndi-name>cd/CD</jndi-name>
- <configuration-name>CMP EntityBean</configuration-name>
</entity>
<session>
<ejb-name>CDCollectionBean</ejb-name>
<jndi-name>cd/CDCollection</jndi-name>
- <configuration-name>Default Stateless SessionBean</configuration-name>
</session></pre>
</td>
</tr>
@@ -123,14 +119,15 @@
</p>
<p>
<hr>
- <p>This says the `CDBean' uses the configuration `CMP EntityBean' and has the
JNDI name `cd/CD'. `CDCollectionBean' uses the configuration `Default Stateless
SessionBean' and has the JNDI name `cd/CDCollection'. Note that the method of
specifying these configurations depends on the server.<br>
+ <p>This says the `CDBean' has the JNDI name `cd/CD' and `CDCollectionBean' has
the JNDI name `cd/CDCollection'. Note that the method of specifying these JNDI names
depends on the server.<br>
When packaging these Beans, don't forget
to include the files <code>ejb-jar.xml</code> and <code>jboss.jar</code> in the
directory <code>META-INF</code>.<br>
During deployment (simply copy the
packaged beans to the `deploy' subdirectory of the jBoss directory) you should see a
message like the following:</p>
<p>
<table border="0" bgcolor="#ffff80" cellspacing="4">
<tr>
- <td>[Container factory]
Deploying:file:/usr/lib/jboss/deploy/cd.jar
- <pre>[Container factory] Deploying CDBean
+ <td>
+ <pre>[Container factory]
Deploying:file:/usr/lib/jboss/deploy/cd.jar
+[Container factory] Deploying CDBean
[Container factory] Deploying CDCollectionBean
[JAWS] Initializing JAWS plugin for CDBean
[JAWS] Remove:DELETE FROM CDBean WHERE id=?