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>&lt;enterprise-beans&gt;
  -                             <pre>  &lt;entity&gt;
  +     <table border="0" bgcolor="#80ff80" 
cellspacing="4"><tr><td><pre>&lt;enterprise-beans&gt;
  +  &lt;entity&gt;
       &lt;description&gt;Models a music CD&lt;/description&gt;
       &lt;ejb-name&gt;CDBean&lt;/ejb-name&gt;
       &lt;home&gt;com.web_tomorrow.cd.CDHome&lt;/home&gt;
  @@ -52,7 +50,7 @@
   
   &lt;!-- more beans here --&gt;
   
  -&lt;/entity-beans&gt;</pre>
  +&lt;/enterprise-beans&gt;</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>&lt;session&gt;
  -                             <pre>  &lt;description&gt;Models a music CD 
collection&lt;/description&gt;
  +                     <td><pre>&lt;session&gt;
  +  &lt;description&gt;Models a music CD collection&lt;/description&gt;
     &lt;ejb-name&gt;CDCollectionBean&lt;/ejb-name&gt;
     &lt;home&gt;com.web_tomorrow.cd.CDCollectionHome&lt;/home&gt;
     &lt;remote&gt;com.web_tomorrow.cd.CDCollection&lt;/remote&gt;
  @@ -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>&lt;entity&gt;
  -                             <pre>  &lt;ejb-name&gt;CDBean&lt;/ejb-name&gt;
  +                     <td><pre>&lt;entity&gt;
  +  &lt;ejb-name&gt;CDBean&lt;/ejb-name&gt;
     &lt;jndi-name&gt;cd/CD&lt;/jndi-name&gt;
  -  &lt;configuration-name&gt;CMP EntityBean&lt;/configuration-name&gt;
   &lt;/entity&gt;
   
   &lt;session&gt;
     &lt;ejb-name&gt;CDCollectionBean&lt;/ejb-name&gt;
     &lt;jndi-name&gt;cd/CDCollection&lt;/jndi-name&gt;
  -  &lt;configuration-name&gt;Default Stateless SessionBean&lt;/configuration-name&gt;
   &lt;/session&gt;</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>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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=?
  
  
  

Reply via email to